REST - How to pass an array of long in parameter with Jersey?
REST – How to pass an array of long in parameter with Jersey?
I am trying to pass an array of long with Jersey :
In the client side i have trying something like that :
@GET @Consume("text/plain") @Produces("application/xml) Response getAllAgentsById(@params("listOfId") List<Long> listOfId);
Is there a way to realize something like that?
Thanks in advance!
Answer
If you want to stick to “application/xml” format and avoid JSON format, you should wrap…
View On WordPress















