@ProviderType public interface SlingRequestProcessor
SlingRequestProcessor
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.
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
NAME
The name of the
SlingRequestProcessor service. |
Modifier and Type | Method and Description |
---|---|
void |
processRequest(HttpServletRequest request,
HttpServletResponse response,
ResourceResolver resourceResolver)
Process an HTTP request through the Sling request processing engine.
|
void processRequest(HttpServletRequest request, HttpServletResponse response, ResourceResolver resourceResolver) throws ServletException, java.io.IOException
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.
request
- Usually a "synthetic" request, i.e. not supplied by
servlet containerresponse
- Usually a "synthetic" response, i.e. not supplied by
servlet containerresourceResolver
- The ResourceResolver
used for the
Sling request processing.java.lang.NullPointerException
- if either of the parameters is
null
java.io.IOException
- if an error occurrs reading from the request input or
writing the responseServletException
- if another servlet related problem occurrsCopyright © 2010 - 2020 Adobe. All Rights Reserved