org.apache.cactus.server
Class PageContextWrapper

java.lang.Object
  extended byjavax.servlet.jsp.PageContext
      extended byorg.apache.cactus.server.AbstractPageContextWrapper
          extended byorg.apache.cactus.server.PageContextWrapper

public class PageContextWrapper
extends AbstractPageContextWrapper

Wrapper around PageContext so that get methods that would normally return implicit objects will now return Cactus wrapper of implicit objects instead.

Version:
$Id: PageContextWrapper.java,v 1.7 2003/05/26 11:43:46 cmlenz Exp $
Author:
Vincent Massol

Field Summary
 
Fields inherited from class org.apache.cactus.server.AbstractPageContextWrapper
originalPageContext, url
 
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
PageContextWrapper(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
 void handlePageException(java.lang.Throwable theThrowable)
           
 
Methods inherited from class org.apache.cactus.server.AbstractPageContextWrapper
findAttribute, forward, getAttribute, getAttribute, getAttributeNamesInScope, getAttributesScope, getException, getOut, getPage, getRequest, getResponse, getServletConfig, getServletContext, getSession, handlePageException, include, initialize, popBody, pushBody, release, removeAttribute, removeAttribute, setAttribute, setAttribute
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PageContextWrapper

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

handlePageException

public void handlePageException(java.lang.Throwable theThrowable)
                         throws javax.servlet.ServletException,
                                java.io.IOException
Throws:
javax.servlet.ServletException
java.io.IOException
See Also:
PageContext.handlePageException(Throwable)


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