I am working on a reverse proxy solution with Java servlets and Apache Tomcat as a webserver, my question how to intercept the HTTP request or server generated response and scan the entire text(HTML and script content) in it.Any suggestions,solutions or literature will appreciated. And suggestions are also required how to configure Tomcat running a reverse proxy or should i switch to some other Java web server.
Thanks in advance and sorry if question is incomplete any details required will be provided.