01: /*
02: * ========================================================================
03: *
04: * Copyright 2004 The Apache Software Foundation.
05: *
06: * Licensed under the Apache License, Version 2.0 (the "License");
07: * you may not use this file except in compliance with the License.
08: * You may obtain a copy of the License at
09: *
10: * http://www.apache.org/licenses/LICENSE-2.0
11: *
12: * Unless required by applicable law or agreed to in writing, software
13: * distributed under the License is distributed on an "AS IS" BASIS,
14: * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15: * See the License for the specific language governing permissions and
16: * limitations under the License.
17: *
18: * ========================================================================
19: */
20: package org.apache.cactus.server;
21:
22: import java.io.IOException;
23:
24: import javax.servlet.ServletException;
25: import javax.servlet.jsp.PageContext;
26:
27: import org.apache.cactus.ServletURL;
28:
29: /**
30: * Extends {@link AbstractPageContextWrapper} by adding the new methods
31: * of the Servlet 2.3 API specifications.
32: *
33: * @see AbstractPageContextWrapper
34: * @version $Id: AbstractPageContextWrapper23.java 238993 2004-05-22 16:39:34Z vmassol $
35: */
36: public abstract class AbstractPageContextWrapper23 extends
37: AbstractPageContextWrapper {
38: /**
39: * Construct a {@link PageContext} instance that delegates
40: * it's method calls to the page context object passed as parameter and
41: * that uses the URL passed as parameter to simulate a URL from which
42: * the request would come from.
43: *
44: * @param theOriginalPageContext the real page context
45: * @param theURL the URL to simulate or <code>null</code> if none
46: */
47: public AbstractPageContextWrapper23(
48: PageContext theOriginalPageContext, ServletURL theURL) {
49: super (theOriginalPageContext, theURL);
50: }
51:
52: // Unmodified overridden methods -----------------------------------------
53:
54: /**
55: * @see PageContext#handlePageException(Throwable)
56: */
57: public void handlePageException(Throwable theThrowable)
58: throws ServletException, IOException {
59: this.originalPageContext.handlePageException(theThrowable);
60: }
61: }
|