This project has retired. For details please refer to its Attic page.
JspTilesRequestContext (Tiles 2 2.0.7 API)

org.apache.tiles.jsp.context
Class JspTilesRequestContext

Package class diagram package JspTilesRequestContext
java.lang.Object
  extended by org.apache.tiles.servlet.context.ServletTilesApplicationContext
      extended by org.apache.tiles.servlet.context.ServletTilesRequestContext
          extended by org.apache.tiles.jsp.context.JspTilesRequestContext
All Implemented Interfaces:
TilesRequestContext, TilesApplicationContext

public class JspTilesRequestContext
extends ServletTilesRequestContext
implements TilesRequestContext

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

Version:
$Rev: 603723 $ $Date: 2007-12-12 21:07:37 +0100 (Wed, 12 Dec 2007) $

Constructor Summary
JspTilesRequestContext(ServletContext context, PageContext pageContext)
          Constructor.
 
Method Summary
 void dispatch(String path)
          Dispatches a path.
 HttpServletResponse getResponse()
          Get the underlying response.
 void include(String path)
          Includes the response from the specified URL in the current response output.
 
Methods inherited from class org.apache.tiles.servlet.context.ServletTilesRequestContext
forward, getHeader, getHeaderValues, getParam, getParamValues, getRequest, getRequestLocale, getRequestScope, getSessionScope, initialize, isUserInRole, release, wrapServletException
 
Methods inherited from class org.apache.tiles.servlet.context.ServletTilesApplicationContext
createRequestContext, getApplicationScope, getInitParams, getResource, getResources, getServletContext, initialize
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.apache.tiles.context.TilesRequestContext
getHeader, getHeaderValues, getParam, getParamValues, getRequest, getRequestLocale, getRequestScope, getSessionScope, isUserInRole
 

Constructor Detail

JspTilesRequestContext

public JspTilesRequestContext(ServletContext context,
                              PageContext pageContext)
Constructor.

Parameters:
context - The servlet context to use.
pageContext - The page context to use.
Method Detail

dispatch

public void dispatch(String path)
              throws IOException
Dispatches a path. In fact it "includes" it!

Specified by:
dispatch in interface TilesRequestContext
Overrides:
dispatch in class ServletTilesRequestContext
Parameters:
path - The path to dispatch to.
Throws:
IOException - If something goes wrong during dispatching.
See Also:
ServletTilesRequestContext.dispatch(java.lang.String)

include

public void include(String path)
             throws IOException
Includes the response from the specified URL in the current response output.

Specified by:
include in interface TilesRequestContext
Overrides:
include in class ServletTilesRequestContext
Parameters:
path - The path to include.
Throws:
IOException - If something goes wrong during inclusion.

getResponse

public HttpServletResponse getResponse()
Get the underlying response.

Specified by:
getResponse in interface TilesRequestContext
Overrides:
getResponse in class ServletTilesRequestContext
Returns:
The current request object.


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