Results 1 to 2 of 2

Thread: Spring 3 REST API + setting specific HTTP Header

Hybrid View

  1. #1
    Join Date
    Sep 2009
    Posts
    3

    Default 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

  2. #2
    Join Date
    Sep 2009
    Posts
    3

    Default 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
  •