KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > apache > myfaces > webapp > DummyServlet


1 /*
2  * Copyright 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.apache.myfaces.webapp;
17
18 import javax.servlet.*;
19 import java.io.IOException JavaDoc;
20
21 /**
22  * Used by JspViewHandlerImplTest to test servlet mappings.
23  *
24  * @author Manfred Geiler (latest modification by $Author: matze $)
25  * @version $Revision: 1.3 $ $Date: 2004/10/13 11:50:59 $
26  * $Log: DummyServlet.java,v $
27  * Revision 1.3 2004/10/13 11:50:59 matze
28  * renamed packages to org.apache
29  *
30  * Revision 1.2 2004/07/01 22:01:21 mwessendorf
31  * ASF switch
32  *
33  * Revision 1.1 2004/05/26 09:24:35 manolito
34  * no message
35  *
36  */

37 public class DummyServlet
38         implements Servlet
39 {
40     //private static final Log log = LogFactory.getLog(DummyServlet.class);
41

42     private ServletConfig _servletConfig;
43
44     public String JavaDoc getServletInfo()
45     {
46         return "Dummy servlet for testing servlet mappings";
47     }
48
49     public void init(ServletConfig servletConfig) throws ServletException
50     {
51         _servletConfig = servletConfig;
52     }
53
54     public ServletConfig getServletConfig()
55     {
56         return _servletConfig;
57     }
58
59     public void service(ServletRequest servletRequest, ServletResponse servletResponse) throws ServletException,
60                                                                                                IOException JavaDoc
61     {
62         //do nothing
63
}
64
65     public void destroy()
66     {
67     }
68 }
69
Popular Tags