org.apache.cactus.server
class AbstractPageContextWrapper

java.lang.Object
  |
  +--javax.servlet.jsp.PageContext
        |
        +--org.apache.cactus.server.AbstractPageContextWrapper
Direct Known Subclasses:
PageContextWrapper
Known Advisors:
LogAspect

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 2002/03/13 20:38:21 vmassol Exp $
Author:
Vincent Massol

Fields inherited from class javax.servlet.jsp.PageContext
APPLICATION, APPLICATION_SCOPE, CONFIG, EXCEPTION, OUT, PAGE, PAGECONTEXT, PAGE_SCOPE, REQUEST, REQUEST_SCOPE, RESPONSE, SESSION, SESSION_SCOPE
 
Constructor Summary
AbstractPageContextWrapper(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
 Object findAttribute(String theName)
           Affected by: LogAspect
 void forward(String theRelativeURLPath)
           Affected by: LogAspect
 Object getAttribute(String theName)
           Affected by: LogAspect
 Object getAttribute(String theName, int theScope)
           Affected by: LogAspect
 Enumeration getAttributeNamesInScope(int theScope)
           Affected by: LogAspect
 int getAttributesScope(String theName)
           Affected by: LogAspect
 Exception getException()
           
 JspWriter getOut()
           
 Object getPage()
           
 ServletRequest getRequest()
           
 ServletResponse getResponse()
           
 ServletConfig getServletConfig()
           
 ServletContext getServletContext()
           
 HttpSession getSession()
           
 void handlePageException(Exception theException)
           Affected by: LogAspect
 void include(String theRelativeURLPath)
           Affected by: LogAspect
 void initialize(Servlet theServlet, ServletRequest theRequest, ServletResponse theResponse, String theErrorPageURL, boolean isSessionNeeded, int theBufferSize, boolean isAutoFlush)
           Affected by: LogAspect
 JspWriter popBody()
           
 BodyContent pushBody()
           
 void release()
           
 void removeAttribute(String theName)
           Affected by: LogAspect
 void removeAttribute(String theName, int theScope)
           Affected by: LogAspect
 void setAttribute(String theName, Object theAttribute)
           Affected by: LogAspect
 void setAttribute(String theName, Object theAttribute, int theScope)
           Affected by: LogAspect
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AbstractPageContextWrapper

public AbstractPageContextWrapper(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 context
theURL - the URL to simulate or null if none
Method Detail

findAttribute

public Object findAttribute(String theName)
See Also:
PageContext
Affected by:
around() in LogAspect.

forward

public void forward(String theRelativeURLPath)
             throws javax.servlet.ServletException,
                    java.io.IOException
See Also:
PageContext
Affected by:
around() in LogAspect.

getAttribute

public Object getAttribute(String theName)
See Also:
PageContext
Affected by:
around() in LogAspect.

getAttribute

public Object getAttribute(String theName,
                           int theScope)
See Also:
PageContext
Affected by:
around() in LogAspect.

getAttributeNamesInScope

public Enumeration getAttributeNamesInScope(int theScope)
See Also:
PageContext
Affected by:
around() in LogAspect.

getAttributesScope

public int getAttributesScope(String theName)
See Also:
PageContext
Affected by:
around() in LogAspect.

getException

public Exception getException()
See Also:
PageContext

getOut

public JspWriter getOut()
See Also:
PageContext

getPage

public Object getPage()
See Also:
PageContext

getRequest

public ServletRequest getRequest()
Returns:
the Cactus wrapped servlet request that knows about the simulated URL

getResponse

public ServletResponse getResponse()
See Also:
PageContext

getServletConfig

public ServletConfig getServletConfig()
Returns:
the Cactus wrapped servlet config

getServletContext

public ServletContext getServletContext()
Returns:
the Cactus wrapped servlet context

getSession

public HttpSession getSession()
See Also:
PageContext

handlePageException

public void handlePageException(Exception theException)
                         throws javax.servlet.ServletException,
                                java.io.IOException
See Also:
PageContext
Affected by:
around() in LogAspect.

include

public void include(String theRelativeURLPath)
             throws javax.servlet.ServletException,
                    java.io.IOException
See Also:
PageContext
Affected by:
around() in LogAspect.

initialize

public void initialize(Servlet theServlet,
                       ServletRequest theRequest,
                       ServletResponse theResponse,
                       String theErrorPageURL,
                       boolean isSessionNeeded,
                       int theBufferSize,
                       boolean isAutoFlush)
                throws java.io.IOException,
                       java.lang.IllegalStateException,
                       java.lang.IllegalArgumentException
See Also:
PageContext
Affected by:
around() in LogAspect.

popBody

public JspWriter popBody()
See Also:
PageContext

pushBody

public BodyContent pushBody()
See Also:
PageContext

release

public void release()
See Also:
PageContext

removeAttribute

public void removeAttribute(String theName)
See Also:
PageContext
Affected by:
around() in LogAspect.

removeAttribute

public void removeAttribute(String theName,
                            int theScope)
See Also:
PageContext
Affected by:
around() in LogAspect.

setAttribute

public void setAttribute(String theName,
                         Object theAttribute)
See Also:
PageContext
Affected by:
around() in LogAspect.

setAttribute

public void setAttribute(String theName,
                         Object theAttribute,
                         int theScope)
See Also:
PageContext
Affected by:
around() in LogAspect.


Copyright © 2000-2002 Apache Software Foundation. All Rights Reserved.