Restletリクエストオブジェクトからパラメータを取得する方法を理解しようとしています。
私のリクエストは/customer?userId = 1として届き、クエリのためにDAOに渡すパラメータを取得したいと思います。
public class CustomerResource extends ServerResource
{
@Get("xml")
public Representation toXml() throws ResourceException, Exception
{
try
{
//get param from request
//call DAO with parameter
}
catch(Exception e)
{
throw e;
}
}
}