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)
           
 
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)
Method Detail

findAttribute

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

forward

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

getAttribute

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

getAttribute

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

getAttributeNamesInScope

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

getAttributesScope

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

getException

public Exception getException()

getOut

public JspWriter getOut()

getPage

public Object getPage()

getRequest

public ServletRequest getRequest()

getResponse

public ServletResponse getResponse()

getServletConfig

public ServletConfig getServletConfig()

getServletContext

public ServletContext getServletContext()

getSession

public HttpSession getSession()

handlePageException

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

include

public void include(String theRelativeURLPath)
             throws javax.servlet.ServletException,
                    java.io.IOException
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
Affected by:
around() in LogAspect.

popBody

public JspWriter popBody()

pushBody

public BodyContent pushBody()

release

public void release()

removeAttribute

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

removeAttribute

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

setAttribute

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

setAttribute

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


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