JAX-RS Tip of the Day: Use Response to wrap... Responses
I would highly recommend that you consider returning a custom response for all requests. I would like to explain with an example. I would like to perform a@POST request where I am creating a new object on the server. Since it is a HTTP 1.1 request, I look at Hypertext Transfer Protocol -- HTTP/1.1 (RFC-2616) to see what I must, should, and may return. The difference in the word choices has specific meaning in the specification. In my case, I would like to be completely compliant. Read full article from JAX-RS Tip of the Day: Use Response to wrap... Responses
No comments:
Post a Comment