Say there is an incoming HTTP POST
request to /first/path
.
Is there any sample Java code that adds new Header1
and forward this POST
to /second/path.
This is a server side forwarding using RequestDispatcher
service within Spring filter. This has to be URL forwarding and not just chaining the filters.