Questions tagged [jersey-1.0]

Jersey 1.0 is the open source, production quality, JAX-RS 1.1 (JSR 311) reference implementation for building RESTful Web services. Only use this tag if your question specifically pertains to Jersey 1.0.

Jersey 1.0 is the open source, production quality, JAX-RS 1.1 (JSR-311) reference implementation for building RESTful Web services. Jersey provides an API so that developers may extend Jersey to suit their needs. The governance policy is the same as the one used in the GlassFish project.

204 questions
26
votes
5 answers

How do I migrate from Jersey 1.0 to Jersey 2.0?

I'm trying to upgrade to Jersey 2.0 and I'm having a lot of trouble because the groupIds and artifactIds of Jersey have completely changed and I can't find a migration plan in the Jersey docs. Here's what my pom.xml used to look like, and this…
Daniel Kaplan
  • 62,768
  • 50
  • 234
  • 356
23
votes
3 answers

How to force URIBuilder.path(...) to encode parameters like "%AD"? This method doesn't always encode parameters with percentage, correctly

How to force URIBuilder.path(...) to encode parameters like "%AD"? The methods path, replacePath and segment of URIBuilder do not always encode parameters with percentage, correctly. When a parameter contains the character "%" followed by two…
Montecarlo
  • 1,239
  • 1
  • 11
  • 24
23
votes
4 answers

How to get resource method matched to URI before Jersey invokes it?

I'm trying to implement a ContainerRequestFilter that does custom validation of a request's parameters. I need to look up the resource method that will be matched to the URI so that I can scrape custom annotations from the method's parameters. Based…
Paul Bellora
  • 54,340
  • 18
  • 130
  • 181
15
votes
9 answers

Jersey Client + set proxy

Hi I've a jersey client which i use to upload a file. I tried using it locally and everything works fine. But in production environment i've to set proxy. I browsed thru few pages but could not get exact solution. Can someone pls help me with…
user732362
  • 395
  • 4
  • 10
  • 19
13
votes
2 answers

How to read JSON request body in Jersey

I have a requirement, where in i need to read JSON request that is coming in as part of the request and also convert it to POJO at the same time. I was able to convert it to POJO object. But I was not able to get the request body (payload) of the…
asfr
  • 133
  • 1
  • 1
  • 7
12
votes
4 answers

Swagger ui - Query param

I am using Swagger ui and Swagger core (1.3) for a jersey application. I have certain query parameters which I must send with every request like post, get, delete... How can I default this ?
Jacaro
  • 321
  • 1
  • 3
  • 13
11
votes
2 answers

java.net site closed, not able to access jersey documentation

I'm not able to access jersey documentation from, https://jersey.java.net/ Has jersey documentation been moved to a new location?
Arham
  • 2,072
  • 2
  • 18
  • 30
9
votes
2 answers

Weblogic 12c : Prefer-web-inf-classes and prefer-application-packages for Jersey

I have to use both (oddly enough ..) prefer-web-inf-classes and prefer-application-packages properties of weblogic.xml on a Weblogic 12c Server (12.2.1) It is REST application based on Jersey 1.9. ( Jersey 1.x JAX-RS RI) and Guice. 1. Why use…
Azimuts
  • 1,212
  • 4
  • 16
  • 35
9
votes
1 answer

jersey rest and csv response

I have created a rest call that responds back with the CSV file using Jersey. rest call code is: @GET @Path("/ReportWithoutADEStatus") @Produces({ "application/ms-excel"}) public Response generateQurterlyReport(){ QuarterlyLabelReport…
ram
  • 173
  • 2
  • 4
  • 13
9
votes
2 answers

How to get form parameters in request filter

I'm trying to get the form parameters of a request in a request filter: @Override public ContainerRequest filter(final ContainerRequest request) { final Form formParameters = request.getFormParameters(); //logic return…
Paul Bellora
  • 54,340
  • 18
  • 130
  • 181
7
votes
3 answers

Uncompress GZIP http-response (using jersey client api, java)

Could someone tell me what I need to do in order to uncompress a GZIP content when getting the response from some Http-call. To make the call I use the Jersey Client API, see code below: String baseURI =…
Larry
  • 11,439
  • 15
  • 61
  • 84
7
votes
1 answer

How to set a custom Jackson ObjectMapper for Jersey 1.0 client

I am using Jersey 1.0 http-client to call a resource and deserialize the response JSON like this: Client client = Client.create(new DefaultClientConfig()) ClientResponse clientResponse =…
woezelmann
  • 1,355
  • 2
  • 19
  • 39
7
votes
2 answers

Introspecting Jersey resource model Jersey 2.x

I have written my own scanner to go through my JAX-RS resources and print out the method names and paths using jersey-server-1.18.1. The problem is when I migrate my same code to 2.16 (changing the package names from com.sun.* to org.glassfish.*),…
shahshi15
  • 2,772
  • 2
  • 20
  • 24
6
votes
1 answer

SLF4JBridgeHandler installation via logging.properties configuration file doesn't work

I have a project and I use: Apache Maven 3.3.3 Project Jersey 1.17 Spring 3.3.1 Tomcat 6 Eclipse IDE I need to log requests and responses. To achieve it I added LoggingFilter to my web.xml:
Alex Karasev
  • 1,108
  • 2
  • 13
  • 24
6
votes
2 answers

Jersey 'NoContent' response returns 200 instead of 204

I am using Jersey (1.18) to build a REST API for my WebApplication. In a part of my code I have the following snippet. return Response.status(Status.NO_CONTENT).entity(err_message).build(); where Status is an instance of…
Athafoud
  • 2,898
  • 3
  • 40
  • 58
1
2 3
13 14