home *** CD-ROM | disk | FTP | other *** search
- package javax.servlet;
-
- import java.io.IOException;
- import java.io.Serializable;
- import java.util.Enumeration;
-
- public abstract class GenericServlet implements Servlet, ServletConfig, Serializable {
- private transient ServletConfig config;
-
- public ServletContext getServletContext() {
- return this.getServletConfig().getServletContext();
- }
-
- public String getInitParameter(String var1) {
- return this.getServletConfig().getInitParameter(var1);
- }
-
- public Enumeration getInitParameterNames() {
- return this.getServletConfig().getInitParameterNames();
- }
-
- public void log(String var1) {
- this.getServletContext().log(this.getClass().getName() + ": " + var1);
- }
-
- public String getServletInfo() {
- return null;
- }
-
- public void init(ServletConfig var1) throws ServletException {
- this.config = var1;
- this.log("init");
- }
-
- public ServletConfig getServletConfig() {
- return this.config;
- }
-
- public abstract void service(ServletRequest var1, ServletResponse var2) throws ServletException, IOException;
-
- public void destroy() {
- this.log("destroy");
- }
- }
-