Package org.apache.sling.engine
Interface SlingRequestProcessor
-
@ProviderType public interface SlingRequestProcessor
TheSlingRequestProcessor
interface defines the service which may be called to handle HTTP requests.This interface is implemented by this bundle and is not intended to be implemented by bundles other than this.
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.String
NAME
The name of theSlingRequestProcessor
service.
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description void
processRequest(HttpServletRequest request, HttpServletResponse response, ResourceResolver resourceResolver)
Process an HTTP request through the Sling request processing engine.
-
-
-
Method Detail
-
processRequest
void processRequest(HttpServletRequest request, HttpServletResponse response, ResourceResolver resourceResolver) throws ServletException, java.io.IOException
Process an HTTP request through the Sling request processing engine.This method does not close the provided resource resolver!
The org.apache.sling.servlet-helpers module provides synthetic request/response classes which can be useful when using this service.
- Parameters:
request
- Usually a "synthetic" request, i.e. not supplied by servlet containerresponse
- Usually a "synthetic" response, i.e. not supplied by servlet containerresourceResolver
- TheResourceResolver
used for the Sling request processing.- Throws:
java.lang.NullPointerException
- if either of the parameters isnull
java.io.IOException
- if an error occurrs reading from the request input or writing the responseServletException
- if another servlet related problem occurrs
-
-