0

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.

eboix
  • 5,113
  • 1
  • 27
  • 38
nordic
  • 1
  • 3

1 Answers1

0

This post is perfect for what you are looking for.

https://stackoverflow.com/a/4206094/1354978

With editable headers.

Community
  • 1
  • 1
earlonrails
  • 4,966
  • 3
  • 32
  • 47
  • I was looking for specific example to perform URL Forwarding within the server. – nordic Sep 25 '12 at 16:08
  • So here is the http server part. So now you have all the parts. http://stackoverflow.com/questions/2717294/create-a-simple-http-server-with-java – earlonrails Sep 25 '12 at 23:30