public class JspTilesRequestContext extends TilesRequestContextWrapper implements TilesRequestContext
Constructor and Description |
---|
JspTilesRequestContext(javax.servlet.ServletContext context,
javax.servlet.jsp.PageContext pageContext)
Deprecated.
|
JspTilesRequestContext(TilesRequestContext enclosedRequest,
javax.servlet.jsp.PageContext pageContext)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
void |
dispatch(String path)
Dispatches a path.
|
javax.servlet.jsp.PageContext |
getPageContext()
Returns the page context that originated the request.
|
PrintWriter |
getPrintWriter()
Returns a print writer to be used to write directly in the response.
|
Object[] |
getRequestObjects()
Returns the original request objects used to create this request.
|
javax.servlet.http.HttpServletResponse |
getResponse()
Deprecated.
Use
getPageContext() or getPrintWriter() . |
Writer |
getWriter()
Returns a writer to be used to write directly in the response.
|
void |
include(String path)
Includes the response from the specified URL in the current response output.
|
getApplicationContext, getHeader, getHeaderValues, getOutputStream, getParam, getParamValues, getRequest, getRequestLocale, getRequestScope, getSessionScope, getWrappedRequest, isResponseCommitted, isUserInRole, setContentType
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getApplicationContext, getHeader, getHeaderValues, getOutputStream, getParam, getParamValues, getRequest, getRequestLocale, getRequestScope, getSessionScope, isResponseCommitted, isUserInRole, setContentType
public JspTilesRequestContext(TilesRequestContext enclosedRequest, javax.servlet.jsp.PageContext pageContext)
enclosedRequest
- The request that is wrapped here.pageContext
- The page context to use.@Deprecated public JspTilesRequestContext(javax.servlet.ServletContext context, javax.servlet.jsp.PageContext pageContext)
JspTilesRequestContext(TilesRequestContext, PageContext)
.context
- The servlet context to use.pageContext
- The page context to use.public void dispatch(String path) throws IOException
dispatch
in interface TilesRequestContext
dispatch
in class TilesRequestContextWrapper
path
- The path to dispatch to.IOException
- If something goes wrong during dispatching.ServletTilesRequestContext.dispatch(java.lang.String)
public void include(String path) throws IOException
include
in interface TilesRequestContext
include
in class TilesRequestContextWrapper
path
- The path to include.IOException
- If something goes wrong during inclusion.public PrintWriter getPrintWriter() throws IOException
getPrintWriter
in interface TilesRequestContext
getPrintWriter
in class TilesRequestContextWrapper
IOException
- If something goes wrong when getting the print
writer.public Writer getWriter() throws IOException
getWriter
in interface TilesRequestContext
getWriter
in class TilesRequestContextWrapper
IOException
- If something goes wrong when getting the writer.public Object[] getRequestObjects()
getRequestObjects
in interface TilesRequestContext
getRequestObjects
in class TilesRequestContextWrapper
public javax.servlet.jsp.PageContext getPageContext()
@Deprecated public javax.servlet.http.HttpServletResponse getResponse()
getPageContext()
or getPrintWriter()
.JspContext.getOut()
.getResponse
in interface TilesRequestContext
getResponse
in class TilesRequestContextWrapper
Copyright © 2017. All rights reserved.