org.apache.tiles.jsp.context
Class JspTilesRequestContext

Package class diagram package JspTilesRequestContext
java.lang.Object
  extended by org.apache.tiles.context.TilesRequestContextWrapper
      extended by org.apache.tiles.jsp.context.JspTilesRequestContext
All Implemented Interfaces:
TilesRequestContext

public class JspTilesRequestContext
extends TilesRequestContextWrapper
implements TilesRequestContext

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


Constructor Summary
JspTilesRequestContext(javax.servlet.ServletContext context, javax.servlet.jsp.PageContext pageContext)
          Deprecated. Use JspTilesRequestContext(TilesRequestContext, PageContext).
JspTilesRequestContext(TilesRequestContext enclosedRequest, javax.servlet.jsp.PageContext pageContext)
          Constructor.
 
Method Summary
 void dispatch(java.lang.String path)
          Dispatches a path.
 javax.servlet.http.HttpServletResponse getResponse()
          Get the underlying response.
 void include(java.lang.String path)
          Includes the response from the specified URL in the current response output.
 
Methods inherited from class org.apache.tiles.context.TilesRequestContextWrapper
getApplicationContext, getHeader, getHeaderValues, getParam, getParamValues, getRequest, getRequestLocale, getRequestScope, getSessionScope, getWrappedRequest, isUserInRole
 
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
getApplicationContext, getHeader, getHeaderValues, getParam, getParamValues, getRequest, getRequestLocale, getRequestScope, getSessionScope, isUserInRole
 

Constructor Detail

JspTilesRequestContext

public JspTilesRequestContext(TilesRequestContext enclosedRequest,
                              javax.servlet.jsp.PageContext pageContext)
Constructor.

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

JspTilesRequestContext

@Deprecated
public JspTilesRequestContext(javax.servlet.ServletContext context,
                                         javax.servlet.jsp.PageContext pageContext)
Deprecated. Use JspTilesRequestContext(TilesRequestContext, PageContext).

Constructor.

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

dispatch

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

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

include

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

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

getResponse

public javax.servlet.http.HttpServletResponse getResponse()
Get the underlying response.

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