I have this code:
@Override
public Restlet createInboundRoot() {
Router router = new Router(getContext());
Redirector forward = new Redirector(getContext(), SOME_URL,
Redirector.MODE_CLIENT_FOUND);
router.attach("/" + "{id}", forward);
router.attach("/rest/", RootServerResource.class);
MyFilter myFilter = new MyFilter(getContext());
myFilter.setNext(router);
return myFilter;
}
The problem with this code is that Restlet cannot seem to process query
parameter on ROOT path:
http://localhost:8080/?test=test
Filter does not trigger.
However, when through the /rest/ part
http://localhost:8080/rest/?test=test
Filter gets triggered.
What could be the problem with this code?
------------------------------------------------------
http://restlet.tigris.org/ds/viewMessage.do?dsForumId=4447&dsMessageId=3097557