Top "Jax-rs" questions

JAX-RS: Java API for RESTful Web Services.

java.lang.ClassNotFoundException: javax.ws.rs.MessageProcessingException

I am deploying a war to Tomcat 7.0.57. This code uses Jersey 2.x Client to communicate with a Rest endpoint and …

java tomcat cxf jax-rs jersey-client
JAX-RS HATEOAS Using Jersey, Unwanted Link properties in JSON

Since Jersey 2.9, it's been possible to create link relations for hypermedia-driven REST APIs through declarative linking. This code, for example: @…

java rest jersey jax-rs jersey-2.0
How to enable gzip compression for content encoding with Jersey (JAX-RS 2.0) client?

I have a Java application that uses the Jersey implementation of JAX-RS 2.0 and I want to enable gzip compression on …

jax-rs jersey-client
JAX-WS MTOM Sample Code

I'm looking for a simple, working sample MTOM sample code (service + client) either using JAX-WS RI or Axis2-based. I …

axis2 jax-rs mtom
How to make Jersey use GZip compression for the response message body

I am trying to write a simple Jersey application that sends files from a Jersey client to a Jersey server …

glassfish jersey jax-rs
Is it possible to define a jax-rs service interface separated from its implementation (with eclipse and jersey)?

I don't know if the title is confusing, but let's say I have this interface: @Produces(MediaType.APPLICATION_JSON) @Path("/…

java jersey jax-rs java-ee-6
How to use CXF, JAX-RS and HTTP Caching

The CXF documentation mentions caching as Advanced HTTP: CXF JAXRS provides support for a number of advanced HTTP features by …

java rest cxf jax-rs http-caching
Is it okay to use same resource name for both get and post rest api

Sometime back I developed a Restful service in Java with only 1 GET resource. It was accessed like this: GET http://…

rest jax-rs restful-url restful-architecture
Loading resources using Jersey and @ApplicationPath annotation

I'm trying to deploy a basic jersey restful service to Tomcat7 without web.xml: @WebServlet(loadOnStartup=1) @ApplicationPath("resources") @Path("/mypath/{…

java tomcat jersey jax-rs servlet-3.0
How to build a URI using URIbuilder without encoding hash

I have a URI like this: java.net.URI location = UriBuilder.fromPath("../#/Login").queryParam("token", token).build(); and I am …

java rest jax-rs uribuilder