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:
java.io.Serializable
,javax.servlet.Servlet
,javax.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
- items
- The keyword to search for
- See Also:
- Serialized Form
-
-
Field Summary
-
Fields inherited from class org.eclipse.jetty.example.asyncrest.AbstractRestServlet
__DEFAULT_APPID, _appid, APPID_PARAM, ITEMS_PARAM, STYLE
-
-
Constructor Summary
Constructors Constructor Description AsyncRestServlet()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected void
doGet(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response)
protected void
doPost(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response)
void
init(javax.servlet.ServletConfig servletConfig)
-
Methods inherited from class org.eclipse.jetty.example.asyncrest.AbstractRestServlet
generateThumbs, ms, restURL, sanitize, width
-
Methods inherited from class javax.servlet.http.HttpServlet
doDelete, doHead, doOptions, doPut, doTrace, getLastModified, service, service
-
-
-
-
Method Detail
-
init
public void init(javax.servlet.ServletConfig servletConfig) throws javax.servlet.ServletException
- Specified by:
init
in interfacejavax.servlet.Servlet
- Overrides:
init
in classAbstractRestServlet
- Throws:
javax.servlet.ServletException
-
doGet
protected void doGet(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response) throws javax.servlet.ServletException, java.io.IOException
- Overrides:
doGet
in classjavax.servlet.http.HttpServlet
- Throws:
javax.servlet.ServletException
java.io.IOException
-
doPost
protected void doPost(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response) throws javax.servlet.ServletException, java.io.IOException
- Overrides:
doPost
in classAbstractRestServlet
- Throws:
javax.servlet.ServletException
java.io.IOException
-
-