public abstract class AbstractPageContextWrapper
extends javax.servlet.jsp.PageContext
PageContext
. This class provides
a common implementation of the wrapper for the different servlet API.Modifier and Type | Field and Description |
---|---|
protected javax.servlet.jsp.PageContext |
originalPageContext
The real page context
|
protected ServletURL |
url
The URL to simulate
|
Constructor and Description |
---|
AbstractPageContextWrapper(javax.servlet.jsp.PageContext theOriginalPageContext,
ServletURL theURL)
Construct an
PageContext instance that delegates
it's method calls to the page context object passed as parameter and
that uses the URL passed as parameter to simulate a URL from which
the request would come from. |
Modifier and Type | Method and Description |
---|---|
java.lang.Object |
findAttribute(java.lang.String theName) |
void |
forward(java.lang.String theRelativeURLPath) |
java.lang.Object |
getAttribute(java.lang.String theName) |
java.lang.Object |
getAttribute(java.lang.String theName,
int theScope) |
java.util.Enumeration |
getAttributeNamesInScope(int theScope) |
int |
getAttributesScope(java.lang.String theName) |
java.lang.Exception |
getException() |
javax.servlet.jsp.PageContext |
getOriginalPageContext() |
javax.servlet.jsp.JspWriter |
getOut() |
java.lang.Object |
getPage() |
javax.servlet.ServletRequest |
getRequest() |
javax.servlet.ServletResponse |
getResponse() |
javax.servlet.ServletConfig |
getServletConfig() |
javax.servlet.ServletContext |
getServletContext() |
javax.servlet.http.HttpSession |
getSession() |
void |
handlePageException(java.lang.Exception theException) |
void |
include(java.lang.String theRelativeURLPath) |
void |
initialize(javax.servlet.Servlet theServlet,
javax.servlet.ServletRequest theRequest,
javax.servlet.ServletResponse theResponse,
java.lang.String theErrorPageURL,
boolean isSessionNeeded,
int theBufferSize,
boolean isAutoFlush) |
javax.servlet.jsp.JspWriter |
popBody() |
javax.servlet.jsp.tagext.BodyContent |
pushBody() |
void |
release() |
void |
removeAttribute(java.lang.String theName) |
void |
removeAttribute(java.lang.String theName,
int theScope) |
void |
setAttribute(java.lang.String theName,
java.lang.Object theAttribute) |
void |
setAttribute(java.lang.String theName,
java.lang.Object theAttribute,
int theScope) |
getErrorData, handlePageException, include
protected javax.servlet.jsp.PageContext originalPageContext
protected ServletURL url
public AbstractPageContextWrapper(javax.servlet.jsp.PageContext theOriginalPageContext, ServletURL theURL)
PageContext
instance that delegates
it's method calls to the page context object passed as parameter and
that uses the URL passed as parameter to simulate a URL from which
the request would come from.theOriginalPageContext
- the real page contexttheURL
- the URL to simulate or null
if nonepublic javax.servlet.jsp.PageContext getOriginalPageContext()
public javax.servlet.ServletRequest getRequest()
getRequest
in class javax.servlet.jsp.PageContext
public javax.servlet.ServletConfig getServletConfig()
getServletConfig
in class javax.servlet.jsp.PageContext
public javax.servlet.ServletContext getServletContext()
getServletContext
in class javax.servlet.jsp.PageContext
public java.lang.Object findAttribute(java.lang.String theName)
findAttribute
in class javax.servlet.jsp.JspContext
JspContext.findAttribute(String)
public void forward(java.lang.String theRelativeURLPath) throws javax.servlet.ServletException, java.io.IOException
forward
in class javax.servlet.jsp.PageContext
javax.servlet.ServletException
java.io.IOException
PageContext.forward(String)
public java.lang.Object getAttribute(java.lang.String theName)
getAttribute
in class javax.servlet.jsp.JspContext
JspContext.getAttribute(String)
public java.lang.Object getAttribute(java.lang.String theName, int theScope)
getAttribute
in class javax.servlet.jsp.JspContext
JspContext.getAttribute(String, int)
public java.util.Enumeration getAttributeNamesInScope(int theScope)
getAttributeNamesInScope
in class javax.servlet.jsp.JspContext
JspContext.getAttributeNamesInScope(int)
public int getAttributesScope(java.lang.String theName)
getAttributesScope
in class javax.servlet.jsp.JspContext
JspContext.getAttributesScope(String)
public java.lang.Exception getException()
getException
in class javax.servlet.jsp.PageContext
PageContext.getException()
public javax.servlet.jsp.JspWriter getOut()
getOut
in class javax.servlet.jsp.JspContext
JspContext.getOut()
public java.lang.Object getPage()
getPage
in class javax.servlet.jsp.PageContext
PageContext.getPage()
public javax.servlet.ServletResponse getResponse()
getResponse
in class javax.servlet.jsp.PageContext
PageContext.getResponse()
public javax.servlet.http.HttpSession getSession()
getSession
in class javax.servlet.jsp.PageContext
PageContext.getSession()
public void handlePageException(java.lang.Exception theException) throws javax.servlet.ServletException, java.io.IOException
handlePageException
in class javax.servlet.jsp.PageContext
javax.servlet.ServletException
java.io.IOException
PageContext.handlePageException(Exception)
public void include(java.lang.String theRelativeURLPath) throws javax.servlet.ServletException, java.io.IOException
include
in class javax.servlet.jsp.PageContext
javax.servlet.ServletException
java.io.IOException
PageContext.include(String)
public void initialize(javax.servlet.Servlet theServlet, javax.servlet.ServletRequest theRequest, javax.servlet.ServletResponse theResponse, java.lang.String theErrorPageURL, boolean isSessionNeeded, int theBufferSize, boolean isAutoFlush) throws java.io.IOException, java.lang.IllegalStateException, java.lang.IllegalArgumentException
initialize
in class javax.servlet.jsp.PageContext
java.io.IOException
java.lang.IllegalStateException
java.lang.IllegalArgumentException
PageContext.initialize(javax.servlet.Servlet, javax.servlet.ServletRequest, javax.servlet.ServletResponse, java.lang.String, boolean, int, boolean)
public javax.servlet.jsp.JspWriter popBody()
popBody
in class javax.servlet.jsp.JspContext
JspContext.popBody()
public javax.servlet.jsp.tagext.BodyContent pushBody()
pushBody
in class javax.servlet.jsp.PageContext
PageContext.pushBody()
public void release()
release
in class javax.servlet.jsp.PageContext
PageContext.release()
public void removeAttribute(java.lang.String theName)
removeAttribute
in class javax.servlet.jsp.JspContext
JspContext.removeAttribute(String)
public void removeAttribute(java.lang.String theName, int theScope)
removeAttribute
in class javax.servlet.jsp.JspContext
JspContext.removeAttribute(String, int)
public void setAttribute(java.lang.String theName, java.lang.Object theAttribute)
setAttribute
in class javax.servlet.jsp.JspContext
JspContext.setAttribute(String, Object)
public void setAttribute(java.lang.String theName, java.lang.Object theAttribute, int theScope)
setAttribute
in class javax.servlet.jsp.JspContext
JspContext.setAttribute(String, Object)
Copyright © 2000-2004 Apache Software Foundation. All Rights Reserved.