01: /*
02: * Copyright 2003-2006 Rick Knowles <winstone-devel at lists sourceforge net>
03: * Distributed under the terms of either:
04: * - the common development and distribution license (CDDL), v1.0; or
05: * - the GNU Lesser General Public License, v2.1 or later
06: */
07: package javax.servlet;
08:
09: import java.io.IOException;
10:
11: /**
12: * Basic servlet interface
13: *
14: * @author <a href="mailto:rick_knowles@hotmail.com">Rick Knowles</a>
15: */
16: public interface Servlet {
17: public void destroy();
18:
19: public ServletConfig getServletConfig();
20:
21: public String getServletInfo();
22:
23: public void init(ServletConfig config) throws ServletException;
24:
25: public void service(ServletRequest req, ServletResponse res)
26: throws IOException, ServletException;
27: }
|