KnowledgeHub
Questions
Tags
Users
Search
Alex Rivera
|
Logout
Edit Question
Title
Body
I have a rest URL like this http://www.localhost.com/service/resource?status=ACTIVE,PASSIVE and I have a method like this @GET public Resource resource(@QueryParam("status") Collection<STATUS> statusList){ } where STATUS is an enum? public enum STATUS{ ACTIVE,PASSIVE,DISABLED } My question is there a way for the query param status to be automatically converted to a list of enum type STATUS in jersey or do I have to write my own provider for this?
Tags (comma-separated)
Save Edits
Cancel