I have multiple mappings in the restlet which are supposed to pass through the
same filter and authenticator, but for the different mappings i have to use
validationPresence(attribute) for different attributes, refer the code below
for better understanding of the question :
@Override
public synchronized Restlet createInboundRoot(){
Authenticator auth = new myAuthenticator();
Validator val = new myValidator(getContext());
Filter fil1 = new myFilter();
Router r = new Router();
r.attach("/hellowrld",HelloWorldResource.class);
r.attach("/hello",HelloWorldResource1.class);
fil1.setNext(auth);
auth.setNext(val);
val.setNext(r);
val.validatePresence("Name");
return fil1;
}
but here both mappings will pass through validatePresence("Name"), what i want
to achieve is pass "/hellowrld" thru one validator and "/hello" thru other one
. What can i do for that ?
Any help will be appreciated
Thanks
------------------------------------------------------
http://restlet.tigris.org/ds/viewMessage.do?dsForumId=4447&dsMessageId=3074406