public class PageContextWrapper extends PageContextImpl
PageContextImpl.PageELContext, PageContextImpl.PageFunctionMapper, PageContextImpl.PageVarEnv, PageContextImpl.PageVariableMapper
_isFilled
APPLICATION, APPLICATION_SCOPE, CONFIG, EXCEPTION, OUT, PAGE, PAGE_SCOPE, PAGECONTEXT, REQUEST, REQUEST_SCOPE, RESPONSE, SESSION, SESSION_SCOPE
Constructor and Description |
---|
PageContextWrapper() |
Modifier and Type | Method and Description |
---|---|
void |
forward(java.lang.String relativeUrl)
Forward a subrequest relative to the current url.
|
void |
forward(java.lang.String relativeUrl,
java.lang.String query)
Include another servlet into the current output stream.
|
WebApp |
getApplication()
Returns the page's application.
|
HttpServletRequest |
getCauchoRequest()
Returns the servlet response for the page.
|
CauchoResponse |
getCauchoResponse()
Returns the servlet response for the page.
|
ErrorData |
getErrorData()
Returns the error data
|
java.lang.String |
getErrorPage()
Returns the page's error page.
|
ExpressionEvaluator |
getExpressionEvaluator()
Returns the expression evaluator
|
JspWriter |
getOut()
Returns the current out.
|
java.lang.Object |
getPage()
Returns the underlying servlet for the page.
|
HttpServletRequest |
getRequest()
Returns the servlet request for the page.
|
HttpServletResponse |
getResponse()
Returns the servlet response for the page.
|
ServletConfig |
getServletConfig()
Returns the servletConfig for the JSP page.
|
ServletContext |
getServletContext()
Returns the page's servlet context.
|
HttpSession |
getSession()
Returns the request's session.
|
java.lang.Throwable |
getThrowable()
Returns the Throwable stored by the error page.
|
java.io.PrintWriter |
getTopWriter()
Returns the top writer.
|
void |
include(java.lang.String relativeUrl)
Includes the a page relative to the current URL.
|
void |
include(java.lang.String relativeUrl,
boolean flush)
Include another servlet into the current output stream.
|
void |
include(java.lang.String relativeUrl,
java.lang.String query,
boolean flush)
Include another servlet into the current output stream.
|
void |
init(PageContextImpl parent) |
JspWriter |
popAndReleaseBody()
Pops the BodyContent from the JspWriter stack.
|
JspWriter |
popBody()
Pops the page body.
|
BodyContent |
pushBody()
Pushes the page body.
|
JspWriter |
pushBody(java.io.Writer out)
Pushes the page body.
|
void |
releaseBody(BodyContentImpl out) |
void |
setErrorPage(java.lang.String errorPage)
Sets the page's error page.
|
JspWriter |
setWriter(JspWriter oldWriter)
Pops the BodyContent from the JspWriter stack.
|
applicationSetOrRemove, clearAttributes, createExpr, defaultSetOrRemove, encode, encode, fillAttribute, findAttribute, getAttribute, getAttribute, getAttributeNames, getAttributeNamesInScope, getAttributesScope, getBundle, getELContext, getException, getLocale, getLocale, getLocalizedMessage, getLocalizedMessage, getNodeEnv, getSessionScope, getVarEnv, getVariableResolver, handlePageException, handlePageException, init, initialize, initialize, invoke, invokeReader, invokeTrim, isIgnoreException, pageSetOrRemove, printBody, putAttribute, release, removeAttribute, removeAttribute, requestSetOrRemove, resolveVariable, sessionSetOrRemove, setAttribute, setAttribute, setMap, setNodeEnv, setOut, toBoolean
public void init(PageContextImpl parent)
public java.lang.Object getPage()
getPage
in class PageContextImpl
public HttpServletRequest getRequest()
getRequest
in class PageContextImpl
public HttpServletResponse getResponse()
getResponse
in class PageContextImpl
public HttpServletRequest getCauchoRequest()
getCauchoRequest
in class PageContextImpl
public CauchoResponse getCauchoResponse()
getCauchoResponse
in class PageContextImpl
public HttpSession getSession()
PageContext
getSession
in class PageContextImpl
public ServletConfig getServletConfig()
PageContext
getServletConfig
in class PageContextImpl
public ServletContext getServletContext()
getServletContext
in class PageContextImpl
public WebApp getApplication()
getApplication
in class PageContextImpl
public java.lang.String getErrorPage()
getErrorPage
in class PageContextImpl
public void setErrorPage(java.lang.String errorPage)
setErrorPage
in class PageContextImpl
public java.lang.Throwable getThrowable()
getThrowable
in class PageContextImpl
public ErrorData getErrorData()
getErrorData
in class PageContextImpl
public JspWriter getOut()
getOut
in class PageContextImpl
public BodyContent pushBody()
pushBody
in class PageContextImpl
public JspWriter pushBody(java.io.Writer out)
pushBody
in class PageContextImpl
public JspWriter popAndReleaseBody() throws java.io.IOException
popAndReleaseBody
in class PageContextImpl
java.io.IOException
public JspWriter popBody()
popBody
in class PageContextImpl
public void releaseBody(BodyContentImpl out) throws java.io.IOException
releaseBody
in class PageContextImpl
java.io.IOException
public JspWriter setWriter(JspWriter oldWriter)
setWriter
in class PageContextImpl
oldWriter
- the old writerpublic java.io.PrintWriter getTopWriter() throws java.io.IOException
getTopWriter
in class PageContextImpl
java.io.IOException
public ExpressionEvaluator getExpressionEvaluator()
getExpressionEvaluator
in class PageContextImpl
public void forward(java.lang.String relativeUrl, java.lang.String query) throws ServletException, java.io.IOException
PageContextImpl
forward
in class PageContextImpl
relativeUrl
- url relative to the current request.ServletException
java.io.IOException
public void forward(java.lang.String relativeUrl) throws ServletException, java.io.IOException
PageContextImpl
forward
in class PageContextImpl
relativeUrl
- url relative to the current fileServletException
java.io.IOException
public void include(java.lang.String relativeUrl) throws ServletException, java.io.IOException
PageContext
include
in class PageContextImpl
ServletException
java.io.IOException
public void include(java.lang.String relativeUrl, java.lang.String query, boolean flush) throws ServletException, java.io.IOException
PageContextImpl
include
in class PageContextImpl
relativeUrl
- url relative to the current request.ServletException
java.io.IOException
public void include(java.lang.String relativeUrl, boolean flush) throws ServletException, java.io.IOException
PageContextImpl
include
in class PageContextImpl
relativeUrl
- url relative to the current request.ServletException
java.io.IOException