org.apache.cactus.server
Class AbstractPageContextWrapper
java.lang.Object
|
+--javax.servlet.jsp.PageContext
|
+--org.apache.cactus.server.AbstractPageContextWrapper
- Direct Known Subclasses:
- PageContextWrapper
- 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,v 1.2 2001/09/14 20:16:33 pier Exp $
- Author:
- Vincent Massol
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.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 needsSession,
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 java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
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
getRequest
public javax.servlet.ServletRequest getRequest()
- Overrides:
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()
- Overrides:
getServletConfig
in class javax.servlet.jsp.PageContext
- Returns:
- the Cactus wrapped servlet config
getServletContext
public javax.servlet.ServletContext getServletContext()
- Overrides:
getServletContext
in class javax.servlet.jsp.PageContext
- Returns:
- the Cactus wrapped servlet context
findAttribute
public java.lang.Object findAttribute(java.lang.String theName)
- Overrides:
findAttribute
in class javax.servlet.jsp.PageContext
forward
public void forward(java.lang.String theRelativeURLPath)
throws javax.servlet.ServletException,
java.io.IOException
- Overrides:
forward
in class javax.servlet.jsp.PageContext
getAttribute
public java.lang.Object getAttribute(java.lang.String theName)
- Overrides:
getAttribute
in class javax.servlet.jsp.PageContext
getAttribute
public java.lang.Object getAttribute(java.lang.String theName,
int theScope)
- Overrides:
getAttribute
in class javax.servlet.jsp.PageContext
getAttributeNamesInScope
public java.util.Enumeration getAttributeNamesInScope(int theScope)
- Overrides:
getAttributeNamesInScope
in class javax.servlet.jsp.PageContext
getAttributesScope
public int getAttributesScope(java.lang.String theName)
- Overrides:
getAttributesScope
in class javax.servlet.jsp.PageContext
getException
public java.lang.Exception getException()
- Overrides:
getException
in class javax.servlet.jsp.PageContext
getOut
public javax.servlet.jsp.JspWriter getOut()
- Overrides:
getOut
in class javax.servlet.jsp.PageContext
getPage
public java.lang.Object getPage()
- Overrides:
getPage
in class javax.servlet.jsp.PageContext
getResponse
public javax.servlet.ServletResponse getResponse()
- Overrides:
getResponse
in class javax.servlet.jsp.PageContext
getSession
public javax.servlet.http.HttpSession getSession()
- Overrides:
getSession
in class javax.servlet.jsp.PageContext
handlePageException
public void handlePageException(java.lang.Exception theException)
throws javax.servlet.ServletException,
java.io.IOException
- Overrides:
handlePageException
in class javax.servlet.jsp.PageContext
include
public void include(java.lang.String theRelativeURLPath)
throws javax.servlet.ServletException,
java.io.IOException
- Overrides:
include
in class javax.servlet.jsp.PageContext
initialize
public void initialize(javax.servlet.Servlet theServlet,
javax.servlet.ServletRequest theRequest,
javax.servlet.ServletResponse theResponse,
java.lang.String theErrorPageURL,
boolean needsSession,
int thebufferSize,
boolean iSAutoFlush)
throws java.io.IOException,
java.lang.IllegalStateException,
java.lang.IllegalArgumentException
- Overrides:
initialize
in class javax.servlet.jsp.PageContext
popBody
public javax.servlet.jsp.JspWriter popBody()
- Overrides:
popBody
in class javax.servlet.jsp.PageContext
pushBody
public javax.servlet.jsp.tagext.BodyContent pushBody()
- Overrides:
pushBody
in class javax.servlet.jsp.PageContext
release
public void release()
- Overrides:
release
in class javax.servlet.jsp.PageContext
removeAttribute
public void removeAttribute(java.lang.String theName)
- Overrides:
removeAttribute
in class javax.servlet.jsp.PageContext
removeAttribute
public void removeAttribute(java.lang.String theName,
int theScope)
- Overrides:
removeAttribute
in class javax.servlet.jsp.PageContext
setAttribute
public void setAttribute(java.lang.String theName,
java.lang.Object theAttribute)
- Overrides:
setAttribute
in class javax.servlet.jsp.PageContext
setAttribute
public void setAttribute(java.lang.String theName,
java.lang.Object theAttribute,
int theScope)
- Overrides:
setAttribute
in class javax.servlet.jsp.PageContext
Copyright © 2000-2001 Apache Software Foundation. All Rights Reserved.