java - Jersey: Is there a clean way to specify allowed URL extensions? - Stack Overflow
Jersey will select the appropriate media type based on the url extension. Note that Response
is returned instead of String
. I'm not sure how you're building your response and what your requirements are but Jersey can handle converting your Java beans into either XML or JSON (or even JSONP) without a problem.
Read full article from java - Jersey: Is there a clean way to specify allowed URL extensions? - Stack Overflow
No comments:
Post a Comment