I am writing a Java based Web application, which, in the actual production environment would be front-ended by another application which would set certain HTTP request headers before the request hits my application.
However, in the development environment I do not have the front-ending application, for which I need to create a mock web application that simulates the same behavior. i.e. this mock application should set the request headers and redirect or forward or whatever that I do not know 🙂 to a certain page in my application.
How can I accomplish this?
The following articles may help you:
application.
P.S.
I am sorry I provided only links, that was one of my early answer on SO ))