org.apache.tiles.jsp.context
Class JspTilesRequestContext
java.lang.Object
org.apache.tiles.servlet.context.ServletTilesApplicationContext
org.apache.tiles.servlet.context.ServletTilesRequestContext
org.apache.tiles.jsp.context.JspTilesRequestContext
- All Implemented Interfaces:
- org.apache.tiles.context.TilesRequestContext, org.apache.tiles.TilesApplicationContext
public class JspTilesRequestContext
- extends org.apache.tiles.servlet.context.ServletTilesRequestContext
- implements org.apache.tiles.context.TilesRequestContext
Context implementation used for executing tiles within a
jsp tag library.
Constructor Summary |
JspTilesRequestContext(javax.servlet.ServletContext context,
javax.servlet.jsp.PageContext pageContext)
Constructor. |
Method Summary |
void |
dispatch(java.lang.String path)
Dispatches a path. |
javax.servlet.http.HttpServletResponse |
getResponse()
|
void |
include(java.lang.String path)
|
Methods inherited from class org.apache.tiles.servlet.context.ServletTilesRequestContext |
getHeader, getHeaderValues, getParam, getParamValues, getRequest, getRequestLocale, getRequestScope, getSessionScope, initialize, isUserInRole, release |
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 |
JspTilesRequestContext
public JspTilesRequestContext(javax.servlet.ServletContext context,
javax.servlet.jsp.PageContext pageContext)
- Constructor.
- Parameters:
context
- The servlet context to use.pageContext
- The page context to use.
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 org.apache.tiles.context.TilesRequestContext
- Overrides:
dispatch
in class org.apache.tiles.servlet.context.ServletTilesRequestContext
- 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
-
- Specified by:
include
in interface org.apache.tiles.context.TilesRequestContext
- Overrides:
include
in class org.apache.tiles.servlet.context.ServletTilesRequestContext
- Throws:
java.io.IOException
getResponse
public javax.servlet.http.HttpServletResponse getResponse()
-
- Specified by:
getResponse
in interface org.apache.tiles.context.TilesRequestContext
- Overrides:
getResponse
in class org.apache.tiles.servlet.context.ServletTilesRequestContext