KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > apache > cactus > internal > server > JspImplicitObjects


1 /*
2  * ========================================================================
3  *
4  * Copyright 2001-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.internal.server;
21
22 import javax.servlet.jsp.JspWriter JavaDoc;
23 import javax.servlet.jsp.PageContext JavaDoc;
24
25
26 /**
27  * Holder class that contains the instances of the implicit objects that will
28  * be accessible in the test classes (ie subclasses of
29  * <code>JspTestCase</code>).
30  *
31  * @version $Id: JspImplicitObjects.java,v 1.1 2004/05/22 11:34:45 vmassol Exp $
32  */

33 public class JspImplicitObjects extends ServletImplicitObjects
34 {
35     /**
36      * The JSP redirector <code>PageContext</code> object.
37      */

38     protected PageContext JavaDoc pageContext;
39
40     /**
41      * The JSP redirector <code>JspWriter</code> object (same as
42      * <code>pagecontext.getOut()</code>).
43      */

44     protected JspWriter JavaDoc jspWriter;
45
46     /**
47      * @return the <code>PageContext</code> implicit object
48      */

49     public PageContext JavaDoc getPageContext()
50     {
51         return this.pageContext;
52     }
53
54     /**
55      * @param thePageContext the <code>PageContext</code> implicit object
56      */

57     public void setPageContext(PageContext JavaDoc thePageContext)
58     {
59         this.pageContext = thePageContext;
60     }
61
62     /**
63      * @return the <code>JspWriter</code> implicit object
64      */

65     public JspWriter JavaDoc getJspWriter()
66     {
67         return this.jspWriter;
68     }
69
70     /**
71      * @param theWriter the <code>JspWriter</code> implicit object
72      */

73     public void setJspWriter(JspWriter JavaDoc theWriter)
74     {
75         this.jspWriter = theWriter;
76     }
77 }
78
Popular Tags