org.apache.sling.engine.impl
Class SlingRequestProcessorImpl

java.lang.Object
  extended by org.apache.sling.engine.impl.SlingRequestProcessorImpl
All Implemented Interfaces:
SlingRequestProcessor

public class SlingRequestProcessorImpl
extends java.lang.Object
implements SlingRequestProcessor


Field Summary
 
Fields inherited from interface org.apache.sling.engine.SlingRequestProcessor
NAME
 
Constructor Summary
SlingRequestProcessorImpl()
           
 
Method Summary
 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 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.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SlingRequestProcessorImpl

public SlingRequestProcessorImpl()
Method Detail

processRequest

public void processRequest(javax.servlet.http.HttpServletRequest servletRequest,
                           javax.servlet.http.HttpServletResponse servletResponse,
                           org.apache.sling.api.resource.ResourceResolver resourceResolver)
                    throws java.io.IOException
Description copied from interface: SlingRequestProcessor
Process an HTTP request through the Sling request processing engine.

This method does not close the provided resource resolver !

Specified by:
processRequest in interface SlingRequestProcessor
Parameters:
servletRequest - Usually a "synthetic" request, i.e. not supplied by servlet container
servletResponse - Usually a "synthetic" response, i.e. not supplied by servlet container
resourceResolver - The ResourceResolver used for the Sling request processing.
Throws:
java.io.IOException - if an error occurrs reading from the request input or writing the response

processComponent

public void processComponent(org.apache.sling.api.SlingHttpServletRequest request,
                             org.apache.sling.api.SlingHttpServletResponse response,
                             ServletFilterManager.FilterChainType filterChainType)
                      throws java.io.IOException,
                             javax.servlet.ServletException
Renders the component defined by the RequestData's current ComponentData instance after calling all filters of the given filterChainType.

Parameters:
request -
response -
filterChainType -
Throws:
java.io.IOException
javax.servlet.ServletException

dispatchRequest

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 java.io.IOException,
                            javax.servlet.ServletException
Dispatches the request on behalf of the SlingRequestDispatcher.

Throws:
java.io.IOException
javax.servlet.ServletException


Copyright © 2007-2012 The Apache Software Foundation. All Rights Reserved.