@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(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response,
ResourceResolver resourceResolver)
Process an HTTP request through the Sling request processing engine.
|
void processRequest(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response, ResourceResolver resourceResolver) throws javax.servlet.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 responsejavax.servlet.ServletException
- if another servlet related problem occurrsCopyright © 2018 The Apache Software Foundation. All rights reserved.