KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > apache > cactus > server > AbstractPageContextWrapper23


1 /*
2  * ========================================================================
3  *
4  * Copyright 2004 The Apache Software Foundation.
5  *
6  * Licensed under the Apache License, Version 2.0 (the "License");
7  * you may not use this file except in compliance with the License.
8  * You may obtain a copy of the License at
9  *
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 JavaDoc;
23
24 import javax.servlet.ServletException JavaDoc;
25 import javax.servlet.jsp.PageContext JavaDoc;
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,v 1.1 2004/05/22 16:39:34 vmassol Exp $
35  */

36 public abstract class AbstractPageContextWrapper23
37     extends AbstractPageContextWrapper
38 {
39     /**
40      * Construct a {@link PageContext} instance that delegates
41      * it's method calls to the page context object passed as parameter and
42      * that uses the URL passed as parameter to simulate a URL from which
43      * the request would come from.
44      *
45      * @param theOriginalPageContext the real page context
46      * @param theURL the URL to simulate or <code>null</code> if none
47      */

48     public AbstractPageContextWrapper23(PageContext JavaDoc theOriginalPageContext,
49         ServletURL theURL)
50     {
51         super(theOriginalPageContext, theURL);
52     }
53
54     // Unmodified overridden methods -----------------------------------------
55

56     /**
57      * @see PageContext#handlePageException(Throwable)
58      */

59     public void handlePageException(Throwable JavaDoc theThrowable)
60         throws ServletException JavaDoc, IOException JavaDoc
61     {
62         this.originalPageContext.handlePageException(theThrowable);
63     }
64 }
65
Popular Tags