Sample Custom Http Servlet Response Wrapper
This application contains embedded Jetty container so You don't need any container to test this application. Follow the below steps:
To build application, run following command from root directory
mvn clean install
To start application (with jetty) run below command
To test application, try following urls from your favourite browser
Following url returns the customized response of index.jsp. The content would be returned in upper case.
Following url returns the actual response of index.jsp. The content would be returned as it is without applying any customization.
You can try one more url as below and check the difference.