|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjavax.servlet.jsp.JspContext
javax.servlet.jsp.PageContext
org.apache.cactus.server.AbstractPageContextWrapper
public abstract class AbstractPageContextWrapper
Abstract wrapper around PageContext. This class provides
a common implementation of the wrapper for the different servlet API.
| Field Summary | |
|---|---|
protected javax.servlet.jsp.PageContext |
originalPageContext
The real page context. |
protected ServletURL |
url
The URL to simulate. |
| 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 | |
|---|---|
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. |
|
| Method Summary | |
|---|---|
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)
|
static AbstractPageContextWrapper |
newInstance(javax.servlet.jsp.PageContext theOriginalPageContext,
ServletURL theServletURL)
|
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)
|
| Methods inherited from class javax.servlet.jsp.PageContext |
|---|
getErrorData, handlePageException, include |
| Methods inherited from class javax.servlet.jsp.JspContext |
|---|
getExpressionEvaluator, getVariableResolver, pushBody |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected javax.servlet.jsp.PageContext originalPageContext
protected ServletURL url
| Constructor Detail |
|---|
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 none| Method Detail |
|---|
public static AbstractPageContextWrapper newInstance(javax.servlet.jsp.PageContext theOriginalPageContext,
ServletURL theServletURL)
PageContext#newInstance()public 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.ServletException
java.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.ServletException
java.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.ServletException
java.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.IOException
java.lang.IllegalStateException
java.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)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||