users@jersey.java.net

[Jersey] best practice

From: Tomaz Majerhold <tomaz.majerhold_at_arnes.si>
Date: Mon, 28 Jul 2014 16:56:00 +0200

I have some function and I'm wondering what is the most appropriate to
do, because I don't won't to lose strong typing

Hare is example of function:
---------------------------------------
searchTickets(String searchString, EnumSet<Ticket.Status> statuses,
EnumSet<Ticket.Type> types, EnumSet<Ticket.Mode> modes,
Collection<Integer> orgsId)

server side:
-----------------
1) What kind of javax.ws.rs parameter should I use or none?
2) Should I create TicketQuery pojo?


client side:
-----------------
1) If I use this input fields, how to set them in client


Regards, Tomaz