Hi Leigh,
I've implemented the suggested change on the ServletConverter class
only. The code is checked in SVN trunk.
However, I'm relunctant to extend this to the ServletServlet itself
because the target Restlet Application would loose its portability to a
standalone Restlet container.
As you need a tight integration between your Servlet and Restlet code,
direct usage of the ServletConverter class is recommended. If you still
want to go through the ServerServlet, you will just need to create a
subclass that overrides the "getServer()" method like this:
@Override
public HttpServerHelper getServer(HttpServletRequest request) {
HttpServerHelper result = super.getServer(request);
if(this.firstCall){
result.setConverter(
new ServletConverter(getServletContext()));
this.firstCall = false;
}
}
I hope this will help you. BTW, could you let me know why you can't use
the Restlet API directly to establish authentication and resource access
tokens?
Best regards,
Jerome