public class SlingRequestProcessorImpl extends Object implements SlingRequestProcessor
NAME
Constructor and Description |
---|
SlingRequestProcessorImpl() |
Modifier and Type | Method and Description |
---|---|
void |
dispatchRequest(javax.servlet.ServletRequest request,
javax.servlet.ServletResponse response,
org.apache.sling.api.resource.Resource resource,
org.apache.sling.api.request.RequestPathInfo resolvedURL,
boolean include)
Dispatches the request on behalf of the
SlingRequestDispatcher . |
void |
doProcessRequest(javax.servlet.http.HttpServletRequest servletRequest,
javax.servlet.http.HttpServletResponse servletResponse,
org.apache.sling.api.resource.ResourceResolver resourceResolver)
This method is directly called by the Sling main servlet.
|
void |
processComponent(org.apache.sling.api.SlingHttpServletRequest request,
org.apache.sling.api.SlingHttpServletResponse response,
ServletFilterManager.FilterChainType filterChainType)
Renders the component defined by the RequestData's current ComponentData
instance after calling all filters of the given
filterChainType . |
void |
processRequest(javax.servlet.http.HttpServletRequest servletRequest,
javax.servlet.http.HttpServletResponse servletResponse,
org.apache.sling.api.resource.ResourceResolver resourceResolver)
Process an HTTP request through the Sling request processing engine.
|
public void doProcessRequest(javax.servlet.http.HttpServletRequest servletRequest, javax.servlet.http.HttpServletResponse servletResponse, org.apache.sling.api.resource.ResourceResolver resourceResolver) throws IOException
IOException
public void processRequest(javax.servlet.http.HttpServletRequest servletRequest, javax.servlet.http.HttpServletResponse servletResponse, org.apache.sling.api.resource.ResourceResolver resourceResolver) throws IOException
SlingRequestProcessor
This method does not close the provided resource resolver !
processRequest
in interface SlingRequestProcessor
servletRequest
- Usually a "synthetic" request, i.e. not supplied by
servlet containerservletResponse
- Usually a "synthetic" response, i.e. not supplied by
servlet containerresourceResolver
- The ResourceResolver
used for the
Sling request processing.IOException
- if an error occurrs reading from the request input or
writing the responseSlingRequestProcessor.processRequest(javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse, org.apache.sling.api.resource.ResourceResolver)
public void processComponent(org.apache.sling.api.SlingHttpServletRequest request, org.apache.sling.api.SlingHttpServletResponse response, ServletFilterManager.FilterChainType filterChainType) throws IOException, javax.servlet.ServletException
filterChainType
.request
- response
- filterChainType
- IOException
javax.servlet.ServletException
public void dispatchRequest(javax.servlet.ServletRequest request, javax.servlet.ServletResponse response, org.apache.sling.api.resource.Resource resource, org.apache.sling.api.request.RequestPathInfo resolvedURL, boolean include) throws IOException, javax.servlet.ServletException
SlingRequestDispatcher
.IOException
javax.servlet.ServletException
Copyright © 2007–2016 The Apache Software Foundation. All rights reserved.