com.caucho.jsp
Class PageContextWrapper

java.lang.Object
  extended by javax.servlet.jsp.JspContext
      extended by javax.servlet.jsp.PageContext
          extended by com.caucho.jsp.PageContextImpl
              extended by com.caucho.jsp.PageContextWrapper
All Implemented Interfaces:
ExprEnv, JstlPageContext, VariableResolver

public class PageContextWrapper
extends PageContextImpl


Nested Class Summary
 
Nested classes/interfaces inherited from class com.caucho.jsp.PageContextImpl
PageContextImpl.PageELContext, PageContextImpl.PageFunctionMapper, PageContextImpl.PageVarEnv, PageContextImpl.PageVariableMapper
 
Field Summary
 
Fields inherited from class com.caucho.jsp.PageContextImpl
_isFilled
 
Fields inherited from class javax.servlet.jsp.PageContext
APPLICATION, APPLICATION_SCOPE, CONFIG, EXCEPTION, OUT, PAGE, PAGE_SCOPE, PAGECONTEXT, REQUEST, REQUEST_SCOPE, RESPONSE, SESSION, SESSION_SCOPE
 
Constructor Summary
PageContextWrapper()
           
 
Method Summary
 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.
 
Methods inherited from class com.caucho.jsp.PageContextImpl
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
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PageContextWrapper

public PageContextWrapper()
Method Detail

init

public void init(PageContextImpl parent)

getPage

public java.lang.Object getPage()
Returns the underlying servlet for the page.

Overrides:
getPage in class PageContextImpl

getRequest

public HttpServletRequest getRequest()
Returns the servlet request for the page.

Overrides:
getRequest in class PageContextImpl

getResponse

public HttpServletResponse getResponse()
Returns the servlet response for the page.

Overrides:
getResponse in class PageContextImpl

getCauchoRequest

public HttpServletRequest getCauchoRequest()
Returns the servlet response for the page.

Overrides:
getCauchoRequest in class PageContextImpl

getCauchoResponse

public CauchoResponse getCauchoResponse()
Returns the servlet response for the page.

Overrides:
getCauchoResponse in class PageContextImpl

getSession

public HttpSession getSession()
Description copied from class: PageContext
Returns the request's session.

Overrides:
getSession in class PageContextImpl

getServletConfig

public ServletConfig getServletConfig()
Description copied from class: PageContext
Returns the servletConfig for the JSP page.

Overrides:
getServletConfig in class PageContextImpl

getServletContext

public ServletContext getServletContext()
Returns the page's servlet context.

Overrides:
getServletContext in class PageContextImpl

getApplication

public WebApp getApplication()
Returns the page's application.

Overrides:
getApplication in class PageContextImpl

getErrorPage

public java.lang.String getErrorPage()
Returns the page's error page.

Overrides:
getErrorPage in class PageContextImpl

setErrorPage

public void setErrorPage(java.lang.String errorPage)
Sets the page's error page.

Overrides:
setErrorPage in class PageContextImpl

getThrowable

public java.lang.Throwable getThrowable()
Returns the Throwable stored by the error page.

Overrides:
getThrowable in class PageContextImpl

getErrorData

public ErrorData getErrorData()
Returns the error data

Overrides:
getErrorData in class PageContextImpl

getOut

public JspWriter getOut()
Returns the current out.

Overrides:
getOut in class PageContextImpl

pushBody

public BodyContent pushBody()
Pushes the page body.

Overrides:
pushBody in class PageContextImpl

pushBody

public JspWriter pushBody(java.io.Writer out)
Pushes the page body.

Overrides:
pushBody in class PageContextImpl

popAndReleaseBody

public JspWriter popAndReleaseBody()
                            throws java.io.IOException
Pops the BodyContent from the JspWriter stack.

Overrides:
popAndReleaseBody in class PageContextImpl
Returns:
the enclosing writer
Throws:
java.io.IOException

popBody

public JspWriter popBody()
Pops the page body.

Overrides:
popBody in class PageContextImpl
Returns:
the enclosing writer

releaseBody

public void releaseBody(BodyContentImpl out)
                 throws java.io.IOException
Overrides:
releaseBody in class PageContextImpl
Throws:
java.io.IOException

setWriter

public JspWriter setWriter(JspWriter oldWriter)
Pops the BodyContent from the JspWriter stack.

Overrides:
setWriter in class PageContextImpl
Parameters:
oldWriter - the old writer

getTopWriter

public java.io.PrintWriter getTopWriter()
                                 throws java.io.IOException
Returns the top writer.

Overrides:
getTopWriter in class PageContextImpl
Throws:
java.io.IOException

getExpressionEvaluator

public ExpressionEvaluator getExpressionEvaluator()
Returns the expression evaluator

Overrides:
getExpressionEvaluator in class PageContextImpl

forward

public void forward(java.lang.String relativeUrl,
                    java.lang.String query)
             throws ServletException,
                    java.io.IOException
Description copied from class: PageContextImpl
Include another servlet into the current output stream.

Overrides:
forward in class PageContextImpl
Parameters:
relativeUrl - url relative to the current request.
Throws:
ServletException
java.io.IOException

forward

public void forward(java.lang.String relativeUrl)
             throws ServletException,
                    java.io.IOException
Description copied from class: PageContextImpl
Forward a subrequest relative to the current url. Absolute URLs are relative to the context root.

Overrides:
forward in class PageContextImpl
Parameters:
relativeUrl - url relative to the current file
Throws:
ServletException
java.io.IOException

include

public void include(java.lang.String relativeUrl)
             throws ServletException,
                    java.io.IOException
Description copied from class: PageContext
Includes the a page relative to the current URL.

Overrides:
include in class PageContextImpl
Throws:
ServletException
java.io.IOException

include

public void include(java.lang.String relativeUrl,
                    java.lang.String query,
                    boolean flush)
             throws ServletException,
                    java.io.IOException
Description copied from class: PageContextImpl
Include another servlet into the current output stream.

Overrides:
include in class PageContextImpl
Parameters:
relativeUrl - url relative to the current request.
Throws:
ServletException
java.io.IOException

include

public void include(java.lang.String relativeUrl,
                    boolean flush)
             throws ServletException,
                    java.io.IOException
Description copied from class: PageContextImpl
Include another servlet into the current output stream.

Overrides:
include in class PageContextImpl
Parameters:
relativeUrl - url relative to the current request.
Throws:
ServletException
java.io.IOException