users@jersey.java.net

extracting request parameters in custom object

From: Michael Mogley <mrrubato_at_gmail.com>
Date: Tue, 6 Jul 2010 18:22:14 -0700

I would like to refactor my request extraction annotations into a separate
value object. Is there a way to do this in Jersey? I'm envisioning
something like:

public Response toRepresentation(CustomRequestObject obj)
{
...
}

public class CustomRequestObject
{
  @QueryParam("name")
  private String name;

  @QueryParam("id")
  private Long id;
}

Is something like this possible?

Michael

-- 
Michael Mogley, Software Architect
Wirefree Thought LLC