Package org.apache.sling.engine
Interface SlingRequestProcessor
-
@ProviderType public interface SlingRequestProcessorTheSlingRequestProcessorinterface 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.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voidprocessRequest(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response, org.apache.sling.api.resource.ResourceResolver resourceResolver)Process an HTTP request through the Sling request processing engine.
-
-
-
Field Detail
-
NAME
static final String NAME
The name of theSlingRequestProcessorservice.
-
-
Method Detail
-
processRequest
void processRequest(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response, org.apache.sling.api.resource.ResourceResolver resourceResolver) throws javax.servlet.ServletException, IOExceptionProcess 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- TheResourceResolverused for the Sling request processing.- Throws:
NullPointerException- if either of the parameters isnullIOException- if an error occurrs reading from the request input or writing the responsejavax.servlet.ServletException- if another servlet related problem occurrs
-
-