RE: Re: How to allow Query Strings in REST URI - Spring Restlet

2011-06-15 Thread gonzajg
In your route I see that you included this: entry key=/users/{id}/resource2?{query} Try without declaring query like this: entry key=/users/{id}/resource2 I think there's no need to declare {query} to get the query from the URL. aronitin wrote: Hi, I did not really get your point

RE: Re: can not return description in put

2011-06-15 Thread Bram van der Waaij
Nop, unfortunately both options produce the same result. The clientresource.getStatus().getDescription() call on a Get returns my message from the setStatus at the server The clientresource.getStatus().getDescription() call on a Put returns the description of the status error code (400 - Bad

RE: Re: can not return description in put

2011-06-15 Thread gonzajg
Maybe restlet is using the other put method @Override protected Representation put(Representation representation, Variant variant) throws ResourceException try overriding that one. I use anotations in resources like: @Get public Representation getResource(){ } @Put public void

RE: Re: How to allow Query Strings in REST URI - Spring Restlet

2011-06-15 Thread Nitin Arora
Hi, I tried it and it worked. I did not think about that :-(, I was too much into the code. Thanks for the tip ~Nitin -- http://restlet.tigris.org/ds/viewMessage.do?dsForumId=4447dsMessageId=2766308

Re: Re: How to allow Query Strings in REST URI - Spring Restlet

2011-06-15 Thread gonzajg
I'm glad it worked for you :) On Wed, Jun 15, 2011 at 3:38 PM, aronitin [via Restlet Discuss] ml-node+6480085-1989291684-197...@n2.nabble.com wrote: Hi, I tried it and it worked. I did not think about that :-(, I was too much into the code. Thanks for the tip ~Nitin

Re: how to use conditional get in restlet ?

2011-06-15 Thread Matt Kennedy
I'm moving this to the disc...@restlet.itgris.org, the code list is more for the restlet codebase itself. Anyhow, the answer to your question is two-fold: First, Conditional Get means something very specific in HTTP parlance and it isn't what you describe. A conditional get is a GET request