Hi,

request.getResourceRef() is the object you must inspect.
You can ask him 'toString()', or 'getIdentifier()'

See the javadocs for more details: 
http://www.restlet.org/documentation/1.1/api/org/restlet/data/Reference.html

best regards,
Thierry Boileau

> Looking for some advice, 
> Following snippet of code, wanted to know how do I get access to the current 
> URL/URI string in the request object. try a number of things no joy?
>
>
> Restlet restlet = new Restlet() {  
>                @Override  
>                public void handle(Request request, Response response) {
>                        String p = new String();
>                       p = 
> request.getResourceRef().getQueryAsForm().getFirstValue("edate");
>                       response.setEntity("Hello World! ="+p, 
> MediaType.TEXT_PLAIN); 
>                        
>                   }  
>               };
>
> ------------------------------------------------------
> http://restlet.tigris.org/ds/viewMessage.do?dsForumId=4447&dsMessageId=1043275
>
>

------------------------------------------------------
http://restlet.tigris.org/ds/viewMessage.do?dsForumId=4447&dsMessageId=1043363

Reply via email to