@ProviderType public interface SlingRequestProcessorThe
SlingRequestProcessorinterface 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.
static final String NAMEThe name of the
void processRequest(HttpServletRequest request, HttpServletResponse response, ResourceResolver resourceResolver) throws 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.
request- Usually a "synthetic" request, i.e. not supplied by servlet container
response- Usually a "synthetic" response, i.e. not supplied by servlet container
ResourceResolverused for the Sling request processing.
NullPointerException- if either of the parameters is
IOException- if an error occurrs reading from the request input or writing the response
ServletException- if another servlet related problem occurrs