Questions tagged as 'resteasy'

1
answer

Jackson will not serialize JSONObject object

I have a service like this: @Path("/test") public class TestEndPoint { @GET @Produces("application/json") public Response get(){ POJO pojo = new POJO(); pojo.setName("Rafael"); return Response.ok(pojo).bui...
asked by 06.01.2016 / 18:26
1
answer

Error in SQL Server connection with Java in Resteasy API

I'm using the Microsoft 6.0 JDBC driver in a one-time project API using Java (JRE 1.8) with resteasy using Eclipse Oxygen and Tomcat 7 (I tried with other versions and presented the same behavior). My connection code is as follows: public cl...
asked by 11.12.2017 / 14:57
1
answer

How to return request status code Java RestEasy

It is very intuitive to do a return of the API with an object or something, but would like to return an object along with the status code of the request. @Override @GET @Path("/{num}/{cod}") public Foo getFoo(@PathParam("num") long numFoo, @Pa...
asked by 21.02.2017 / 13:47
1
answer

The @Form annotation of RestEasy does not work in Glassfish 4.1

I'm trying to make a legacy web java application that is bundled inside an EAR and that was written for JBoss 7 to work on Glassfish 4.1. The application is not built with maven or gradle (so please do not post answers about maven dependencies...
asked by 27.10.2015 / 19:56
0
answers

Form via method PUT is not sending the data to a service restEasy

I'm sending a form via Ajax, my front is done in AngularJS. I capture the form information and send it to a service that is in Java RestReasy. But he arrives Nullo! Could someone help me? In my controller it looks like this: var req = {...
asked by 05.04.2017 / 15:13
0
answers

How to get the body of the http request in the API

How do I access the body content of the request sent by the client? For example: @Override @GET @Path("/mypath") public Response myMethod() { System.out.println("Conteúdo da requisição: " + request.body); return null; }     
asked by 14.03.2017 / 13:53