javax.servlet.http
Class HttpServlet

java.lang.Object
  extended by javax.servlet.GenericServlet
      extended by javax.servlet.http.HttpServlet
All Implemented Interfaces:
java.io.Serializable, Servlet, ServletConfig
Direct Known Subclasses:
ErrorServlet, InvokerServlet, StaticResourceServlet

public abstract class HttpServlet
extends GenericServlet
implements java.io.Serializable

Base class for http servlets

Author:
Rick Knowles
See Also:
Serialized Form

Constructor Summary
HttpServlet()
           
 
Method Summary
protected  void doDelete(HttpServletRequest req, HttpServletResponse resp)
           
protected  void doGet(HttpServletRequest req, HttpServletResponse resp)
           
protected  void doHead(HttpServletRequest req, HttpServletResponse resp)
           
protected  void doOptions(HttpServletRequest req, HttpServletResponse resp)
           
protected  void doPost(HttpServletRequest req, HttpServletResponse resp)
           
protected  void doPut(HttpServletRequest req, HttpServletResponse resp)
           
protected  void doTrace(HttpServletRequest req, HttpServletResponse resp)
           
protected  long getLastModified(HttpServletRequest req)
           
protected  void service(HttpServletRequest request, HttpServletResponse response)
           
 void service(ServletRequest request, ServletResponse response)
           
 
Methods inherited from class javax.servlet.GenericServlet
destroy, getInitParameter, getInitParameterNames, getServletConfig, getServletContext, getServletInfo, getServletName, init, init, log, log
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

HttpServlet

public HttpServlet()
Method Detail

service

public void service(ServletRequest request,
                    ServletResponse response)
             throws ServletException,
                    java.io.IOException
Specified by:
service in interface Servlet
Specified by:
service in class GenericServlet
Throws:
ServletException
java.io.IOException

doGet

protected void doGet(HttpServletRequest req,
                     HttpServletResponse resp)
              throws ServletException,
                     java.io.IOException
Throws:
ServletException
java.io.IOException

getLastModified

protected long getLastModified(HttpServletRequest req)

doPost

protected void doPost(HttpServletRequest req,
                      HttpServletResponse resp)
               throws ServletException,
                      java.io.IOException
Throws:
ServletException
java.io.IOException

doPut

protected void doPut(HttpServletRequest req,
                     HttpServletResponse resp)
              throws ServletException,
                     java.io.IOException
Throws:
ServletException
java.io.IOException

doDelete

protected void doDelete(HttpServletRequest req,
                        HttpServletResponse resp)
                 throws ServletException,
                        java.io.IOException
Throws:
ServletException
java.io.IOException

doOptions

protected void doOptions(HttpServletRequest req,
                         HttpServletResponse resp)
                  throws ServletException,
                         java.io.IOException
Throws:
ServletException
java.io.IOException

doTrace

protected void doTrace(HttpServletRequest req,
                       HttpServletResponse resp)
                throws ServletException,
                       java.io.IOException
Throws:
ServletException
java.io.IOException

service

protected void service(HttpServletRequest request,
                       HttpServletResponse response)
                throws ServletException,
                       java.io.IOException
Throws:
ServletException
java.io.IOException

doHead

protected void doHead(HttpServletRequest req,
                      HttpServletResponse resp)
               throws ServletException,
                      java.io.IOException
Throws:
ServletException
java.io.IOException


Copyright © 2013. All Rights Reserved.