com.dyuproject.web.rest
Class RESTServlet
java.lang.Object
javax.servlet.GenericServlet
javax.servlet.http.HttpServlet
com.dyuproject.web.rest.RESTServlet
- All Implemented Interfaces:
- Serializable, Servlet, ServletConfig
public class RESTServlet
- extends HttpServlet
The REST servlet to handle all the requests dispatched to the webapp.
- Author:
- David Yu
- See Also:
- Serialized Form
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
RESTServlet
public RESTServlet()
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
newObjectInstance
protected Object newObjectInstance(String className)
throws Exception
- Throws:
Exception
destroy
public void destroy()
- Specified by:
destroy
in interface Servlet
- Overrides:
destroy
in class GenericServlet
Copyright © 2013. All Rights Reserved.