Get HTTP Get parameters from Restlet Request

Posted by Holograham on Stack Overflow See other posts from Stack Overflow or by Holograham
Published on 2010-05-05T13:32:58Z Indexed on 2010/05/05 13:38 UTC
Read the original article Hit count: 278

Filed under:
|
|

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;
    }
}

© Stack Overflow or respective owner

Related posts about restlet

Related posts about java