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