5 minutes with – Jersey Producers

Have you ever tried to have to produce a multiple rappresentation of the same resources? I’m speaking about produce a common json and xml and, also, custom rappresentation like text/html which is not very common for data exchanging.

In this article I’d like to show you how produce multiple response format of Jersey resources. The type of response format will depend from resource extension request.

Continue reading


5 minutes with – Cookie in Jersey

This week I’ve had to use the cookies inside a RESTful service made by Jersey.

That’s not very complicated, you must only remember the execution flow at jersey request to make a good work. In this post I’d like to describe this flow sending a cookie in every response and read it again.

Continue reading