Questions tagged as 'jersey'

1
answer

How to determine which HTML file should be displayed as input in Jersey?

I'm trying to find a way to provide a correct entry page in Jersey. A login page when there is no user logged in, otherwise I should display another home page that will call RESTful services developed with Jersey and that will change the home pa...
asked by 14.02.2014 / 20:14
1
answer

Upload file inside the webapp folder

I have a Rest API with Jersey where I upload files. If I set the path to somewhere else, ex: C:\uploads works, but I would like to save these files to a directory in webapp: I'm currently doing this: @POST @Path("/anexoClient...
asked by 22.12.2016 / 19:09
2
answers

Configuring Hibernate transactions only with Jersey API annotations

I want to use something similar to org.springframework.transaction.annotation.Transactional of Spring that sets up a Transaction only using only the Jersey API. Something similar to the code below: @Resource private SessionFactory facto...
asked by 17.02.2014 / 20:36
1
answer

User Authentication in AngularJs with API Rest in Java / Jersey

I'm developing the user authentication module in my application and I'm having some trouble accessing the API, getting a 403 error. In the old way I was doing, when I sent the request to the service, it correctly returned the data I needed wi...
asked by 08.11.2015 / 14:58
1
answer

How to configure Jersey 2.22 in the project?

I'm having a hard time configuring the Jersey 2.22.1 in my web project that is deployed on the Tomcat 8 server, which I am developing on Netbeans. Note: I use maven. I have read and reread documentation but it does not fit into my...
asked by 28.11.2015 / 22:24
1
answer

How not to serialize some attributes in RESTful calls with Jersey and Jackson

I'm using the Jersey library in conjunction with the Jackson library to use REST-type web services. In calls, I usually use the following code that transforms a given entity into a JSON to be sent in the request body. Map<String, Object>...
asked by 31.01.2014 / 17:49
1
answer

WebService Jersey REST Not Found

I have the following problem: when I run my jersey server and type the url mapped in web.xml the following error appears. MyPOM.XML<projectxmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"...
asked by 16.12.2017 / 21:42
0
answers

Response XML does not display accented characters

I'm wearing Jersey in a WEB application. In this application, I return an XML file to client requests (which are web-browsers). In order to ensure the display of accented characters, I wrote the Produces annotation as follows: @Produces("t...
asked by 26.08.2015 / 21:24
1
answer

Create service versions rest

I'm creating rest services with Java (Jersey). This service tends to grow and evolve, and may undergo changes in existing routines, so I believe the best route would be to create production versions so clients do not break with the changes....
asked by 05.07.2016 / 20:09
1
answer

How to map a http request parameter to an enum in java?

I am making an ajax request like this: $.ajax({ type : 'POST', url : apiURL + '/play', dataType : "json", data : { against : "ANYBODY" }, success : function(data, textStatus, jqXHR) { // ... }, e...
asked by 15.04.2014 / 22:00