-
Jan 5th, 2010, 04:12 AM
#1
Spring 3 REST API + setting specific HTTP Header
Hi,
I'm using Spring3 restfull API but I need to set also HOST specific header in HTTP. Can I do this staying with REST API ?
Thanks
Jack
-
Jan 5th, 2010, 07:33 AM
#2
Solved
I realized that using HttpMessageConverterI can do what I want.
When the "write" method is called I just have to get access to HTTP header and set them like with : "outputMessage.getHeaders().add("Host", "node1");"
Jack
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules