org.apache.tiles.request.jsp
Class JspRequest

java.lang.Object
  extended by org.apache.tiles.request.AbstractRequest
      extended by org.apache.tiles.request.DispatchRequestWrapper
          extended by org.apache.tiles.request.AbstractViewRequest
              extended by org.apache.tiles.request.jsp.JspRequest
All Implemented Interfaces:
DispatchRequest, Request, RequestWrapper

public class JspRequest
extends AbstractViewRequest

Context implementation used for executing tiles within a jsp tag library.

Version:
$Rev: 1332134 $ $Date: 2012-04-30 05:23:19 -0400 (Mon, 30 Apr 2012) $

Field Summary
 
Fields inherited from class org.apache.tiles.request.AbstractRequest
FORCE_INCLUDE_ATTRIBUTE_NAME
 
Constructor Summary
JspRequest(DispatchRequest enclosedRequest, javax.servlet.jsp.PageContext pageContext)
          Constructor.
 
Method Summary
static JspRequest createServletJspRequest(ApplicationContext applicationContext, javax.servlet.jsp.PageContext pageContext)
          Creates a JSP request.
protected  void doInclude(String path)
          
 Map<String,Object> getApplicationScope()
          Returns the application scope.
 List<String> getAvailableScopes()
           
 Map<String,Object> getContext(String scope)
           
 javax.servlet.jsp.PageContext getPageContext()
          Returns the page context that originated the request.
 Map<String,Object> getPageScope()
          Returns the page scope.
 PrintWriter getPrintWriter()
          
 Map<String,Object> getRequestScope()
          Returns the request scope.
 Map<String,Object> getSessionScope()
          Returns the session scope.
 Writer getWriter()
          
 
Methods inherited from class org.apache.tiles.request.AbstractViewRequest
dispatch, include
 
Methods inherited from class org.apache.tiles.request.DispatchRequestWrapper
getApplicationContext, getHeader, getHeaderValues, getOutputStream, getParam, getParamValues, getRequestLocale, getResponseHeaders, getWrappedRequest, isResponseCommitted, isUserInRole, setContentType
 
Methods inherited from class org.apache.tiles.request.AbstractRequest
isForceInclude, setForceInclude
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

JspRequest

public JspRequest(DispatchRequest enclosedRequest,
                  javax.servlet.jsp.PageContext pageContext)
Constructor.

Parameters:
enclosedRequest - The request that is wrapped here.
pageContext - The page context to use.
Method Detail

createServletJspRequest

public static JspRequest createServletJspRequest(ApplicationContext applicationContext,
                                                 javax.servlet.jsp.PageContext pageContext)
Creates a JSP request.

Parameters:
applicationContext - The application context.
pageContext - The page context.
Returns:
A new JSP request.

getAvailableScopes

public List<String> getAvailableScopes()
Specified by:
getAvailableScopes in interface Request
Overrides:
getAvailableScopes in class DispatchRequestWrapper

doInclude

protected void doInclude(String path)
                  throws IOException

Overrides:
doInclude in class AbstractViewRequest
Throws:
IOException

getPrintWriter

public PrintWriter getPrintWriter()

Specified by:
getPrintWriter in interface Request
Overrides:
getPrintWriter in class DispatchRequestWrapper

getWriter

public Writer getWriter()

Specified by:
getWriter in interface Request
Overrides:
getWriter in class DispatchRequestWrapper

getPageScope

public Map<String,Object> getPageScope()
Returns the page scope.

Returns:
The page scope.

getRequestScope

public Map<String,Object> getRequestScope()
Returns the request scope.

Returns:
The request scope.

getSessionScope

public Map<String,Object> getSessionScope()
Returns the session scope.

Returns:
The session scope.

getApplicationScope

public Map<String,Object> getApplicationScope()
Returns the application scope.

Returns:
The application scope.

getPageContext

public javax.servlet.jsp.PageContext getPageContext()
Returns the page context that originated the request.

Returns:
The page context.

getContext

public Map<String,Object> getContext(String scope)
Specified by:
getContext in interface Request
Overrides:
getContext in class DispatchRequestWrapper


Copyright © 2001-2012 Apache Software Foundation. All Rights Reserved.