KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > weblogic > servlet > internal > ServletContextImpl


1 /*
2  * Copyright 1999-2004 The Apache Software Foundation.
3  *
4  * Licensed under the Apache License, Version 2.0 (the "License");
5  * you may not use this file except in compliance with the License.
6  * You may obtain a copy of the License at
7  *
8  * http://www.apache.org/licenses/LICENSE-2.0
9  *
10  * Unless required by applicable law or agreed to in writing, software
11  * distributed under the License is distributed on an "AS IS" BASIS,
12  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13  * See the License for the specific language governing permissions and
14  * limitations under the License.
15  */

16 package weblogic.servlet.internal;
17
18 import java.io.InputStream JavaDoc;
19 import java.net.URL JavaDoc;
20 import java.util.Enumeration JavaDoc;
21 import java.util.Set JavaDoc;
22
23 import javax.servlet.RequestDispatcher JavaDoc;
24 import javax.servlet.Servlet JavaDoc;
25 import javax.servlet.ServletContext JavaDoc;
26
27 /**
28  * **********************************************************************
29  * * W A R N I N G *
30  * **********************************************************************
31  *
32  * This is a mock object of the class, not the actual class.
33  * It's used to compile the code in absence of the actual class.
34  *
35  * This class is created by hand, not automatically.
36  *
37  * **********************************************************************
38  *
39  * @version CVS $Id: ServletContextImpl.java 30932 2004-07-29 17:35:38Z vgritsenko $
40  */

41  
42 public class ServletContextImpl implements ServletContext JavaDoc{
43
44     /** @deprecated The method ServletContextImpl.getServlets() overrides a
45      * deprecated method from ServletContext */

46     public Enumeration JavaDoc getServlets(){
47         return null;
48     }
49
50     public void log(String JavaDoc string){
51     }
52
53     public void setExpectedLog(String JavaDoc string){
54     }
55
56     public void setupGetResource(URL JavaDoc resource){
57     }
58
59     public URL JavaDoc getResource(String JavaDoc string){
60         return null;
61     }
62     
63     public void setupGetResourcePaths(Set JavaDoc resourcePaths){
64     }
65
66     public Set JavaDoc getResourcePaths(String JavaDoc string){
67         return null;
68     }
69
70     public ServletContext JavaDoc getContext(String JavaDoc string){
71         return null;
72     }
73
74     public int getMinorVersion(){
75         return -1;
76     }
77
78     public void removeAttribute(String JavaDoc string){
79     }
80     
81     public void log(String JavaDoc string, Throwable JavaDoc t){
82     }
83
84     public void setExpectedLogThrowable(Throwable JavaDoc throwable){
85     }
86
87     public void addRealPath(String JavaDoc realPath){
88     }
89
90     public String JavaDoc getRealPath(String JavaDoc string){
91         return "";
92     }
93
94     /** @deprecated The method ServletContextImpl.getServletNames() overrides
95      * a deprecated method from ServletContext */

96     public Enumeration JavaDoc getServletNames(){
97         return null;
98     }
99
100     /** @deprecated The method ServletContextImpl.getServlet(String) overrides
101      * a deprecated method from ServletContext */

102     public Servlet JavaDoc getServlet(String JavaDoc string){
103         return null;
104     }
105
106     /** @deprecated The method ServletContextImpl.log(Exception, String)
107      * overrides a deprecated method from ServletContext */

108     public void log(Exception JavaDoc exception, String JavaDoc string){
109     }
110
111     public String JavaDoc getServerInfo(){
112         return null;
113     }
114
115     public void setExpectedRequestDispatcherURI(String JavaDoc uri){
116     }
117
118     public void setupGetRequestDispatcher(RequestDispatcher JavaDoc requestDispatcher){
119     }
120
121     public RequestDispatcher JavaDoc getRequestDispatcher(String JavaDoc uri){
122         return null;
123     }
124     
125     public int getMajorVersion(){
126         return -1;
127     }
128
129     public Set JavaDoc getResourcePaths(){
130         return null;
131     }
132
133     public void setAttribute(String JavaDoc string, Object JavaDoc object){
134     }
135
136     public String JavaDoc getMimeType(String JavaDoc string){
137         return null;
138     }
139
140     public RequestDispatcher JavaDoc getNamedDispatcher(String JavaDoc string){
141         return null;
142     }
143
144     public String JavaDoc getInitParameter(String JavaDoc paramName){
145         return null;
146     }
147
148     public void setInitParameter(String JavaDoc paramName, String JavaDoc paramValue){
149     }
150
151     public Object JavaDoc getAttribute(String JavaDoc string){
152         return null;
153     }
154
155     public Enumeration JavaDoc getAttributeNames(){
156         return null;
157     }
158
159     public String JavaDoc getServletContextName() {
160         return null;
161     }
162     
163     public InputStream JavaDoc getResourceAsStream(String JavaDoc string){
164         return null;
165     }
166     
167     public Enumeration JavaDoc getInitParameterNames(){
168         return null;
169     }
170 }
171
Popular Tags