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
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
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
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
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
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
6 matches
Mail list logo