On Wed, Jul 14, 2010 at 6:54 PM, Alexander Klimetschek <[email protected]> wrote:
> On Wed, Jul 14, 2010 at 18:02, Carsten Ziegeler <[email protected]> wrote:
>> ...Why not creating plain http servlet request objects and then going
>> through the sling main servlet?
>
> Interesting, how would you do that? I always thought the request
> dispatcher is meant for this....

I'll experiment today with adding the following interface to the Sling
API and having the SlingMainServlet implement it:

/** Process an HTTP request outside of the servlet container's
 *   request/response cycle */
public interface BackgroundRequestProcessor {
  void processRequest(HttpServletRequest req, HttpServletResponse res) {
  }
}

If that works for my SLING-550 use case, I'll post the resulting patch
to JIRA before committing.

-Bertrand

Reply via email to