Questions tagged as 'jersey'

1
answer

Why do I change the order of the JSON with JAXB?

I am developing an API Rest with Jersey and I am using JAXB and with the annotation @XmlRootElement @XmlRootElement public class Car { private int idCar; private String model; private String color; public Car() { }...
asked by 08.11.2018 / 22:50
1
answer

How to add general HEADER attributes to the response of my web service java?

I am exposing an api rest with Javaee, but I have the problem of CORS because I am consuming it from an Angular app, I know that in each method of the service to each response I can place a header, but I do not want to add a header to each respo...
asked by 24.05.2018 / 18:28
0
answers

Fill in headers on request RestFul Jersey

I have a RestFul service which should receive a% custom header , the service works correctly, the service client believes it with the Netbeans assistant but I do not know how to fill the% custom% co, this is the client RestFul public class Alb...
asked by 26.02.2018 / 03:31
2
answers

Using sockets to make data requests

I have a mental problem on this subject because I do not know about patterns or best practices that fulfill this task (please, enlighten me on this subject). My context is the following, using Sockets (concretely java.net.Socket and...
asked by 22.06.2017 / 19:14
1
answer

Error in REst response in java, object is not displayed correctly

Good morning, I have a problem with the response of rest services in java, I used a generic object type to standardize the answers but when I add objects to this object and it becomes Json it does not convert well, this is the object: public c...
asked by 05.05.2017 / 16:44