1   /*
2    * Copyright 2001-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 org.portletbridge.mock;
17  
18  import java.io.InputStream;
19  import java.net.MalformedURLException;
20  import java.net.URL;
21  import java.util.Enumeration;
22  import java.util.Set;
23  
24  import javax.servlet.RequestDispatcher;
25  import javax.servlet.Servlet;
26  import javax.servlet.ServletContext;
27  import javax.servlet.ServletException;
28  
29  /***
30   * @author JMcCrindle
31   */
32  public class MockServletContext implements ServletContext {
33  
34      /***
35       * 
36       */
37      public MockServletContext() {
38          super();
39      }
40  
41      /* (non-Javadoc)
42       * @see javax.servlet.ServletContext#getContext(java.lang.String)
43       */
44      public ServletContext getContext(String arg0) {
45          // TODO Auto-generated method stub
46          return null;
47      }
48  
49      /* (non-Javadoc)
50       * @see javax.servlet.ServletContext#getMajorVersion()
51       */
52      public int getMajorVersion() {
53          // TODO Auto-generated method stub
54          return 0;
55      }
56  
57      /* (non-Javadoc)
58       * @see javax.servlet.ServletContext#getMinorVersion()
59       */
60      public int getMinorVersion() {
61          // TODO Auto-generated method stub
62          return 0;
63      }
64  
65      /* (non-Javadoc)
66       * @see javax.servlet.ServletContext#getMimeType(java.lang.String)
67       */
68      public String getMimeType(String arg0) {
69          // TODO Auto-generated method stub
70          return null;
71      }
72  
73      /* (non-Javadoc)
74       * @see javax.servlet.ServletContext#getResourcePaths(java.lang.String)
75       */
76      public Set getResourcePaths(String arg0) {
77          // TODO Auto-generated method stub
78          return null;
79      }
80  
81      /* (non-Javadoc)
82       * @see javax.servlet.ServletContext#getResource(java.lang.String)
83       */
84      public URL getResource(String arg0) throws MalformedURLException {
85          // TODO Auto-generated method stub
86          return null;
87      }
88  
89      /* (non-Javadoc)
90       * @see javax.servlet.ServletContext#getResourceAsStream(java.lang.String)
91       */
92      public InputStream getResourceAsStream(String arg0) {
93          // TODO Auto-generated method stub
94          return null;
95      }
96  
97      /* (non-Javadoc)
98       * @see javax.servlet.ServletContext#getRequestDispatcher(java.lang.String)
99       */
100     public RequestDispatcher getRequestDispatcher(String arg0) {
101         // TODO Auto-generated method stub
102         return null;
103     }
104 
105     /* (non-Javadoc)
106      * @see javax.servlet.ServletContext#getNamedDispatcher(java.lang.String)
107      */
108     public RequestDispatcher getNamedDispatcher(String arg0) {
109         // TODO Auto-generated method stub
110         return null;
111     }
112 
113     /* (non-Javadoc)
114      * @see javax.servlet.ServletContext#getServlet(java.lang.String)
115      */
116     public Servlet getServlet(String arg0) throws ServletException {
117         // TODO Auto-generated method stub
118         return null;
119     }
120 
121     /* (non-Javadoc)
122      * @see javax.servlet.ServletContext#getServlets()
123      */
124     public Enumeration getServlets() {
125         // TODO Auto-generated method stub
126         return null;
127     }
128 
129     /* (non-Javadoc)
130      * @see javax.servlet.ServletContext#getServletNames()
131      */
132     public Enumeration getServletNames() {
133         // TODO Auto-generated method stub
134         return null;
135     }
136 
137     /* (non-Javadoc)
138      * @see javax.servlet.ServletContext#log(java.lang.String)
139      */
140     public void log(String arg0) {
141         // TODO Auto-generated method stub
142 
143     }
144 
145     /* (non-Javadoc)
146      * @see javax.servlet.ServletContext#log(java.lang.Exception, java.lang.String)
147      */
148     public void log(Exception arg0, String arg1) {
149         // TODO Auto-generated method stub
150 
151     }
152 
153     /* (non-Javadoc)
154      * @see javax.servlet.ServletContext#log(java.lang.String, java.lang.Throwable)
155      */
156     public void log(String arg0, Throwable arg1) {
157         // TODO Auto-generated method stub
158 
159     }
160 
161     /* (non-Javadoc)
162      * @see javax.servlet.ServletContext#getRealPath(java.lang.String)
163      */
164     public String getRealPath(String arg0) {
165         // TODO Auto-generated method stub
166         return null;
167     }
168 
169     /* (non-Javadoc)
170      * @see javax.servlet.ServletContext#getServerInfo()
171      */
172     public String getServerInfo() {
173         // TODO Auto-generated method stub
174         return null;
175     }
176 
177     /* (non-Javadoc)
178      * @see javax.servlet.ServletContext#getInitParameter(java.lang.String)
179      */
180     public String getInitParameter(String arg0) {
181         // TODO Auto-generated method stub
182         return null;
183     }
184 
185     /* (non-Javadoc)
186      * @see javax.servlet.ServletContext#getInitParameterNames()
187      */
188     public Enumeration getInitParameterNames() {
189         // TODO Auto-generated method stub
190         return null;
191     }
192 
193     /* (non-Javadoc)
194      * @see javax.servlet.ServletContext#getAttribute(java.lang.String)
195      */
196     public Object getAttribute(String arg0) {
197         // TODO Auto-generated method stub
198         return null;
199     }
200 
201     /* (non-Javadoc)
202      * @see javax.servlet.ServletContext#getAttributeNames()
203      */
204     public Enumeration getAttributeNames() {
205         // TODO Auto-generated method stub
206         return null;
207     }
208 
209     /* (non-Javadoc)
210      * @see javax.servlet.ServletContext#setAttribute(java.lang.String, java.lang.Object)
211      */
212     public void setAttribute(String arg0, Object arg1) {
213         // TODO Auto-generated method stub
214 
215     }
216 
217     /* (non-Javadoc)
218      * @see javax.servlet.ServletContext#removeAttribute(java.lang.String)
219      */
220     public void removeAttribute(String arg0) {
221         // TODO Auto-generated method stub
222 
223     }
224 
225     /* (non-Javadoc)
226      * @see javax.servlet.ServletContext#getServletContextName()
227      */
228     public String getServletContextName() {
229         // TODO Auto-generated method stub
230         return null;
231     }
232 
233 }