Andreas Kollegger wrote:
I'd like to expose data stored in an external database as resource nodes in Sling.


Like Andreas, I'm exposing database tables as a virtual resource tree in Sling. I'm using Dojo's JsonRestStore as a front-end for this resource tree and have successfully set up ResourceProvider implementations for each table that will be served through Sling. The problem that I'm facing is that JsonRestStore uses the Content-Range HTTP header and query params to narrow the number of records that are returned by the server. I could get that information from the servlet request, but the getResource(ResourceResolver, HttpServletRequest, String) method in my custom resource provider is never called by JcrResourceResolver2.resolve(HttpServletRequest, String). As far as I can tell, the getResource() method with the servlet request isn't called anywhere in the Sling codebase.

Any ideas on how to get headers and parameters from the servlet request into my ResourceProvider class?

p.

Reply via email to