org.mortbay.jetty.plus.annotation
Class PojoServlet

java.lang.Object
  extended by javax.servlet.GenericServlet
      extended by javax.servlet.http.HttpServlet
          extended by org.mortbay.jetty.plus.annotation.PojoServlet
All Implemented Interfaces:
Serializable, Servlet, ServletConfig, PojoWrapper

public class PojoServlet
extends HttpServlet
implements PojoWrapper

See Also:
Serialized Form

Constructor Summary
PojoServlet(Object pojo)
           
 
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 doPost(HttpServletRequest req, HttpServletResponse resp)
           
protected  void doPut(HttpServletRequest req, HttpServletResponse resp)
           
 String getDeleteMethodName()
           
 String getGetMethodName()
           
 String getHeadMethodName()
           
 Object getPojo()
           
 String getPostMethodName()
           
 String getPutMethodName()
           
 void init()
           
 void setDeleteMethodName(String name)
           
 void setGetMethodName(String name)
           
 void setHeadMethodName(String name)
           
 void setPostMethodName(String name)
           
 void setPutMethodName(String name)
           
 
Methods inherited from class javax.servlet.http.HttpServlet
doOptions, doTrace, getLastModified, service, service
 
Methods inherited from class javax.servlet.GenericServlet
destroy, 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

PojoServlet

public PojoServlet(Object pojo)
Method Detail

getPojo

public Object getPojo()
Specified by:
getPojo in interface PojoWrapper

setDeleteMethodName

public void setDeleteMethodName(String name)

getDeleteMethodName

public String getDeleteMethodName()

setPutMethodName

public void setPutMethodName(String name)

getPutMethodName

public String getPutMethodName()

setHeadMethodName

public void setHeadMethodName(String name)

getHeadMethodName

public String getHeadMethodName()

setPostMethodName

public void setPostMethodName(String name)

getPostMethodName

public String getPostMethodName()

setGetMethodName

public void setGetMethodName(String name)

getGetMethodName

public String getGetMethodName()

init

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

doDelete

protected void doDelete(HttpServletRequest req,
                        HttpServletResponse resp)
                 throws ServletException,
                        IOException
Overrides:
doDelete in class HttpServlet
Throws:
ServletException
IOException

doGet

protected void doGet(HttpServletRequest req,
                     HttpServletResponse resp)
              throws ServletException,
                     IOException
Overrides:
doGet in class HttpServlet
Throws:
ServletException
IOException

doHead

protected void doHead(HttpServletRequest req,
                      HttpServletResponse resp)
               throws ServletException,
                      IOException
Overrides:
doHead in class HttpServlet
Throws:
ServletException
IOException

doPost

protected void doPost(HttpServletRequest req,
                      HttpServletResponse resp)
               throws ServletException,
                      IOException
Overrides:
doPost in class HttpServlet
Throws:
ServletException
IOException

doPut

protected void doPut(HttpServletRequest req,
                     HttpServletResponse resp)
              throws ServletException,
                     IOException
Overrides:
doPut in class HttpServlet
Throws:
ServletException
IOException


Copyright © 1995-2008 Mort Bay Consulting. All Rights Reserved.