org.eclipse.jetty.example.asyncrest
Class AsyncRestServlet
java.lang.Object
javax.servlet.GenericServlet
javax.servlet.http.HttpServlet
org.eclipse.jetty.example.asyncrest.AbstractRestServlet
org.eclipse.jetty.example.asyncrest.AsyncRestServlet
- All Implemented Interfaces:
- Serializable, Servlet, ServletConfig
public class AsyncRestServlet
- extends AbstractRestServlet
Servlet implementation class AsyncRESTServlet.
Enquires ebay REST service for auctions by key word.
May be configured with init parameters:
- appid
- The eBay application ID to use
Each request examines the following request parameters:
- items
- The keyword to search for
- See Also:
- Serialized Form
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
AsyncRestServlet
public AsyncRestServlet()
init
public void init(ServletConfig servletConfig)
throws ServletException
- Specified by:
init
in interface Servlet
- Overrides:
init
in class AbstractRestServlet
- Throws:
ServletException
doGet
protected void doGet(HttpServletRequest request,
HttpServletResponse response)
throws ServletException,
IOException
- Overrides:
doGet
in class HttpServlet
- Throws:
ServletException
IOException
doPost
protected void doPost(HttpServletRequest request,
HttpServletResponse response)
throws ServletException,
IOException
- Overrides:
doPost
in class AbstractRestServlet
- Throws:
ServletException
IOException
Copyright © 1995-2010 Mort Bay Consulting. All Rights Reserved.