1
|
|
/* Generated by AspectJ version 1.0.5 */
|
2
|
|
package org.apache.cactus.server;
|
3
|
|
import java.io.IOException;
|
4
|
|
import javax.servlet.ServletException;
|
5
|
|
import javax.servlet.jsp.PageContext;
|
6
|
|
import org.apache.cactus.ServletURL;
|
7
|
|
|
8
|
|
/**
|
9
|
|
* Wrapper around <code>PageContext</code> so that get methods that would
|
10
|
|
* normally return implicit objects will now return Cactus wrapper of
|
11
|
|
* implicit objects instead.
|
12
|
|
*
|
13
|
|
* @author <a href="mailto:vmassol@apache.org">Vincent Massol</a>
|
14
|
|
*
|
15
|
|
* @version $Id: PageContextWrapper.html,v 1.1 2003/04/14 12:27:33 sinisa Exp $
|
16
|
|
*/
|
17
|
|
public class PageContextWrapper extends AbstractPageContextWrapper {
|
18
|
|
/**
|
19
|
|
* Construct an <code>PageContext</code> instance that delegates
|
20
|
|
* it's method calls to the page context object passed as parameter and
|
21
|
|
* that uses the URL passed as parameter to simulate a URL from which
|
22
|
|
* the request would come from.
|
23
|
|
*
|
24
|
|
* @param theOriginalPageContext the real page context
|
25
|
|
* @param theURL the URL to simulate or <code>null</code> if none
|
26
|
|
*/
|
27
|
30
|
public PageContextWrapper(PageContext theOriginalPageContext, ServletURL theURL) {
|
28
|
30
|
super(theOriginalPageContext, theURL);
|
29
|
|
;
|
30
|
|
}
|
31
|
|
/**
|
32
|
|
* @see PageContext#handlePageException(Throwable)
|
33
|
|
*/
|
34
|
0
|
public void handlePageException(Throwable theThrowable) throws ServletException, IOException {
|
35
|
0
|
this.originalPageContext.handlePageException(theThrowable);
|
36
|
|
}
|
37
|
|
|
38
|
|
}
|