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, includeprotected 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.PageContextpublic javax.servlet.ServletConfig getServletConfig()
getServletConfig in class javax.servlet.jsp.PageContextpublic javax.servlet.ServletContext getServletContext()
getServletContext in class javax.servlet.jsp.PageContextpublic java.lang.Object findAttribute(java.lang.String theName)
findAttribute in class javax.servlet.jsp.JspContextJspContext.findAttribute(String)public void forward(java.lang.String theRelativeURLPath)
throws javax.servlet.ServletException,
java.io.IOException
forward in class javax.servlet.jsp.PageContextjavax.servlet.ServletExceptionjava.io.IOExceptionPageContext.forward(String)public java.lang.Object getAttribute(java.lang.String theName)
getAttribute in class javax.servlet.jsp.JspContextJspContext.getAttribute(String)public java.lang.Object getAttribute(java.lang.String theName,
int theScope)
getAttribute in class javax.servlet.jsp.JspContextJspContext.getAttribute(String, int)public java.util.Enumeration getAttributeNamesInScope(int theScope)
getAttributeNamesInScope in class javax.servlet.jsp.JspContextJspContext.getAttributeNamesInScope(int)public int getAttributesScope(java.lang.String theName)
getAttributesScope in class javax.servlet.jsp.JspContextJspContext.getAttributesScope(String)public java.lang.Exception getException()
getException in class javax.servlet.jsp.PageContextPageContext.getException()public javax.servlet.jsp.JspWriter getOut()
getOut in class javax.servlet.jsp.JspContextJspContext.getOut()public java.lang.Object getPage()
getPage in class javax.servlet.jsp.PageContextPageContext.getPage()public javax.servlet.ServletResponse getResponse()
getResponse in class javax.servlet.jsp.PageContextPageContext.getResponse()public javax.servlet.http.HttpSession getSession()
getSession in class javax.servlet.jsp.PageContextPageContext.getSession()public void handlePageException(java.lang.Exception theException)
throws javax.servlet.ServletException,
java.io.IOException
handlePageException in class javax.servlet.jsp.PageContextjavax.servlet.ServletExceptionjava.io.IOExceptionPageContext.handlePageException(Exception)public void include(java.lang.String theRelativeURLPath)
throws javax.servlet.ServletException,
java.io.IOException
include in class javax.servlet.jsp.PageContextjavax.servlet.ServletExceptionjava.io.IOExceptionPageContext.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.PageContextjava.io.IOExceptionjava.lang.IllegalStateExceptionjava.lang.IllegalArgumentExceptionPageContext.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.JspContextJspContext.popBody()public javax.servlet.jsp.tagext.BodyContent pushBody()
pushBody in class javax.servlet.jsp.PageContextPageContext.pushBody()public void release()
release in class javax.servlet.jsp.PageContextPageContext.release()public void removeAttribute(java.lang.String theName)
removeAttribute in class javax.servlet.jsp.JspContextJspContext.removeAttribute(String)public void removeAttribute(java.lang.String theName,
int theScope)
removeAttribute in class javax.servlet.jsp.JspContextJspContext.removeAttribute(String, int)public void setAttribute(java.lang.String theName,
java.lang.Object theAttribute)
setAttribute in class javax.servlet.jsp.JspContextJspContext.setAttribute(String, Object)public void setAttribute(java.lang.String theName,
java.lang.Object theAttribute,
int theScope)
setAttribute in class javax.servlet.jsp.JspContextJspContext.setAttribute(String, Object)Copyright © 2000-2004 Apache Software Foundation. All Rights Reserved.