com.dyuproject.web.rest
Class RESTServlet

java.lang.Object
  extended by javax.servlet.GenericServlet
      extended by javax.servlet.http.HttpServlet
          extended by com.dyuproject.web.rest.RESTServlet
All Implemented Interfaces:
Serializable, Servlet, ServletConfig

public final class RESTServlet
extends HttpServlet

The REST servlet to handle all the requests dispatched to the webapp.

Author:
David Yu
See Also:
Serialized Form
Date created:
May 10, 2008

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

Constructor Detail

RESTServlet

public RESTServlet()
Method Detail

init

public void init()
          throws ServletException
Overrides:
init in class GenericServlet
Throws:
ServletException

service

public void service(HttpServletRequest request,
                    HttpServletResponse response)
             throws ServletException,
                    IOException
Overrides:
service in class HttpServlet
Throws:
ServletException
IOException

destroy

public void destroy()
Specified by:
destroy in interface Servlet
Overrides:
destroy in class GenericServlet


Copyright © 2008-2013. All Rights Reserved.