miércoles, 14 de enero de 2009

Accessing GET-parameters with Restlet

Today, I needed to read HTTP-GET parameters in a restlet, e.g. http://localhost/restlet?someParam=foo, and came up with:
request.getResourceRef().getQueryAsForm().getFirstValue("someParam");

Referencia aqui

No hay comentarios: