RE: Problem with attributes in Restlet 2.0

2010-08-26 Thread bobsponge
Hello Thierry,

I've changed the router query matching mode as you suggested me and it works
perfectly!
Thank you very much for your help. 

Best regards.
-- 
View this message in context: 
http://restlet-discuss.1400322.n2.nabble.com/Problem-with-attributes-in-Restlet-2-0-tp5341461p5465010.html
Sent from the Restlet Discuss mailing list archive at Nabble.com.

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


Re: Problem with attributes in Restlet 2.0

2010-07-30 Thread bobsponge
Hi again,

I forgot to say that the version I'm using is the jse one and in this
project I use these files:

org.restlet-2.0-SNAPSHOT.jar
org.restlet.ext.simple-2.0-SNAPSHOT.jar
org.restlet.lib.org.simpleframework-4.1.13.jar

Thank you.
-- 
View this message in context: 
http://restlet-discuss.1400322.n2.nabble.com/Problem-with-attributes-in-Restlet-2-0-tp5341461p5354030.html
Sent from the Restlet Discuss mailing list archive at Nabble.com.

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


Problem with attributes in Restlet 2.0

2010-07-27 Thread bobsponge
Hi all,

I've been using Restlet 2 in its different milestones and RC's for a year or
so and now I've moved the project to the new 2.0 Snapshot release. While
testing if the behaviour was fine I found  something weird related to
attributes passing. The only thing that I've changed is the overriding of
the createInboundRoot() method instead of createRoot(). I've defined a
Router with some attachments like:

router.attach(/myresource?{resourceparams}, ResourceDefinition.class);

In the ResourceDefinition class I've defined a method like this:

@Get
public String represent() {
...

if(getRequestAttributes().get(resourceparams)!=null){
params= (String) getRequestAttributes().get(resourceparams);
//use the params

}
}

The attributes are defined in the URI like:
http://address:port/myresource?key1=value1key2=value2... and it used to
work fine in previous releases but testing the new 2.0 the
getRequestAttributes().get(resourceparams) always returns null.

Is there any change needs to be done in order to get the attributes the same
way I used to do?

Thanks
-- 
View this message in context: 
http://restlet-discuss.1400322.n2.nabble.com/Problem-with-attributes-in-Restlet-2-0-tp5341461p5341461.html
Sent from the Restlet Discuss mailing list archive at Nabble.com.

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