Top "Jax-rs" questions

JAX-RS: Java API for RESTful Web Services.

Configure Jackson as JSON Provider in JAX-RS 2.0

I want to use Jackson as JSON provider for my JAX-RS 2.0 webservice. For JAX-RS I use Jersey 2.0 in GlassFish 4. With …

rest jersey jackson jax-rs glassfish-4
What is the difference between @PathParam and @QueryParam

I am newbie in RESTful jersey. I would like to ask what is the different between @PathParam and @QueryParam in …

rest jersey jax-rs
How to retrieve JSON Response from a javax.ws.rs.core.Response response?

I am making a request to an API and getting a response status code of 200. Response of the api includes …

java web-services jax-ws jax-rs webclient
Design Pattern to model Request and Response Objects for Webservices

I have about 7 REST web services to implement. Some of these web services have a standard (identical) response, while some …

java web-services rest design-patterns jax-rs
Jersey ClientResponse.getEntity of generic type

I got a problem to deserialize using jeresy ClientRespone.getEntity I've tried to follow some tutorials and questions, include this: …

java json jersey jax-rs jersey-client
A message body writer for Java class java.util.ArrayList

I received the below stack trace when accessing on of my jax-rs resources. I'm using Tomcat 7, with Jersey 1.12 and Hibernate 4 …

java list jersey jax-rs
Get ServletContext in JAX-RS resource

I'm playing around with JAX-RS, deploying on Tomcat. It's basically: @Path("/hello") @Produces({"text/plain"}) public class Hellohandler { @GET public …

tomcat servlets jakarta-ee jax-rs application-variables
How to get POST parameter in JAX-RS method?

I am developing RESTful services with Jersey and it works great with GET methods. But I can only get null …

java rest post parameters jax-rs
Jersey 2 injection source for multipart formdata

I had a method: @POST @Consumes("multipart/form-data") @Produces( {"text/xml"}) public Response processForm( @FormDataParam("myparam") InputStream is, @FormDataParam("myparam") …

java jersey tomcat7 jax-rs multipartform-data
Handling custom error response in JAX-RS 2.0 client library

I am starting to use the new client API library in JAX-RS and really loving it so far. I have …

java json jersey jackson jax-rs