Announcement Announcement Module
Collapse
No announcement yet.
Change the request URL in controller for content type negotiation Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • Change the request URL in controller for content type negotiation

    Hello,

    In our web application we have been using file extensions for content negotiation and this has worked well. We have a case where we have to implement a service that uses other means for specifying content type, it returns various flavors of xml. For backwards compatiblity reasons it has to respond to urls with the .htm extension which in the rest of the app mapped to html. So we have a bit of a problem here.

    Is there anyway to change/set the request extension in controller to the existing ContentNegotiatingViewResolver will continue to work as is? I am trying to avoid setting up a separate dispatcher context for this which is the next solution that comes to mind.

    Thanks!
    -Nate
Working...
X