Get HTTP Get parameters from Restlet Request
- by Holograham
I am trying to figure out how to get the parameters from a Restlet request object.
my request comes in as /customer?userId=1 and I want to grab the parameter to pass to my DAO for the query.
@Get("xml")
public Representation toXml() throws ResourceException, Exception
{
try
{
//get param from request
//call DAO with parameter
}
catch(Exception e)
{
throw e;
}
}