org.apache.cactus.server
Class AbstractPageContextWrapper
java.lang.Object
javax.servlet.jsp.JspContext
javax.servlet.jsp.PageContext
org.apache.cactus.server.AbstractPageContextWrapper
- Direct Known Subclasses:
- AbstractPageContextWrapper23
public abstract class AbstractPageContextWrapper
- extends javax.servlet.jsp.PageContext
Abstract wrapper around PageContext
. This class provides
a common implementation of the wrapper for the different servlet API.
- Version:
- $Id: AbstractPageContextWrapper.java 239136 2005-02-01 08:54:44Z vmassol $
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)
|
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 |
originalPageContext
protected javax.servlet.jsp.PageContext originalPageContext
- The real page context
url
protected ServletURL url
- The URL to simulate
AbstractPageContextWrapper
public 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.
- Parameters:
theOriginalPageContext
- the real page contexttheURL
- the URL to simulate or null
if none
getOriginalPageContext
public javax.servlet.jsp.PageContext getOriginalPageContext()
- Returns:
- the original page context
- Since:
- 1.7
getRequest
public javax.servlet.ServletRequest getRequest()
- Specified by:
getRequest
in class javax.servlet.jsp.PageContext
- Returns:
- the Cactus wrapped servlet request that knows about the
simulated URL
getServletConfig
public javax.servlet.ServletConfig getServletConfig()
- Specified by:
getServletConfig
in class javax.servlet.jsp.PageContext
- Returns:
- the Cactus wrapped servlet config
getServletContext
public javax.servlet.ServletContext getServletContext()
- Specified by:
getServletContext
in class javax.servlet.jsp.PageContext
- Returns:
- the Cactus wrapped servlet context
findAttribute
public java.lang.Object findAttribute(java.lang.String theName)
- Specified by:
findAttribute
in class javax.servlet.jsp.JspContext
- See Also:
JspContext.findAttribute(String)
forward
public void forward(java.lang.String theRelativeURLPath)
throws javax.servlet.ServletException,
java.io.IOException
- Specified by:
forward
in class javax.servlet.jsp.PageContext
- Throws:
javax.servlet.ServletException
java.io.IOException
- See Also:
PageContext.forward(String)
getAttribute
public java.lang.Object getAttribute(java.lang.String theName)
- Specified by:
getAttribute
in class javax.servlet.jsp.JspContext
- See Also:
JspContext.getAttribute(String)
getAttribute
public java.lang.Object getAttribute(java.lang.String theName,
int theScope)
- Specified by:
getAttribute
in class javax.servlet.jsp.JspContext
- See Also:
JspContext.getAttribute(String, int)
getAttributeNamesInScope
public java.util.Enumeration getAttributeNamesInScope(int theScope)
- Specified by:
getAttributeNamesInScope
in class javax.servlet.jsp.JspContext
- See Also:
JspContext.getAttributeNamesInScope(int)
getAttributesScope
public int getAttributesScope(java.lang.String theName)
- Specified by:
getAttributesScope
in class javax.servlet.jsp.JspContext
- See Also:
JspContext.getAttributesScope(String)
getException
public java.lang.Exception getException()
- Specified by:
getException
in class javax.servlet.jsp.PageContext
- See Also:
PageContext.getException()
getOut
public javax.servlet.jsp.JspWriter getOut()
- Specified by:
getOut
in class javax.servlet.jsp.JspContext
- See Also:
JspContext.getOut()
getPage
public java.lang.Object getPage()
- Specified by:
getPage
in class javax.servlet.jsp.PageContext
- See Also:
PageContext.getPage()
getResponse
public javax.servlet.ServletResponse getResponse()
- Specified by:
getResponse
in class javax.servlet.jsp.PageContext
- See Also:
PageContext.getResponse()
getSession
public javax.servlet.http.HttpSession getSession()
- Specified by:
getSession
in class javax.servlet.jsp.PageContext
- See Also:
PageContext.getSession()
handlePageException
public void handlePageException(java.lang.Exception theException)
throws javax.servlet.ServletException,
java.io.IOException
- Specified by:
handlePageException
in class javax.servlet.jsp.PageContext
- Throws:
javax.servlet.ServletException
java.io.IOException
- See Also:
PageContext.handlePageException(Exception)
include
public void include(java.lang.String theRelativeURLPath)
throws javax.servlet.ServletException,
java.io.IOException
- Specified by:
include
in class javax.servlet.jsp.PageContext
- Throws:
javax.servlet.ServletException
java.io.IOException
- See Also:
PageContext.include(String)
initialize
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
- Specified by:
initialize
in class javax.servlet.jsp.PageContext
- Throws:
java.io.IOException
java.lang.IllegalStateException
java.lang.IllegalArgumentException
- See Also:
PageContext.initialize(javax.servlet.Servlet, javax.servlet.ServletRequest, javax.servlet.ServletResponse, java.lang.String, boolean, int, boolean)
popBody
public javax.servlet.jsp.JspWriter popBody()
- Overrides:
popBody
in class javax.servlet.jsp.JspContext
- See Also:
JspContext.popBody()
pushBody
public javax.servlet.jsp.tagext.BodyContent pushBody()
- Overrides:
pushBody
in class javax.servlet.jsp.PageContext
- See Also:
PageContext.pushBody()
release
public void release()
- Specified by:
release
in class javax.servlet.jsp.PageContext
- See Also:
PageContext.release()
removeAttribute
public void removeAttribute(java.lang.String theName)
- Specified by:
removeAttribute
in class javax.servlet.jsp.JspContext
- See Also:
JspContext.removeAttribute(String)
removeAttribute
public void removeAttribute(java.lang.String theName,
int theScope)
- Specified by:
removeAttribute
in class javax.servlet.jsp.JspContext
- See Also:
JspContext.removeAttribute(String, int)
setAttribute
public void setAttribute(java.lang.String theName,
java.lang.Object theAttribute)
- Specified by:
setAttribute
in class javax.servlet.jsp.JspContext
- See Also:
JspContext.setAttribute(String, Object)
setAttribute
public void setAttribute(java.lang.String theName,
java.lang.Object theAttribute,
int theScope)
- Specified by:
setAttribute
in class javax.servlet.jsp.JspContext
- See Also:
JspContext.setAttribute(String, Object)
Copyright © 2000-2004 Apache Software Foundation. All Rights Reserved.