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...
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...
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...
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...
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...
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>...
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"...
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...
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....
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...