|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjavax.servlet.GenericServlet
javax.servlet.http.HttpServlet
gov.nasa.pds.portal.product.ProductServlet
public class ProductServlet
Servlet that returns products in response to OODT queries.
This servlet accepts the following required parameters:
object
: URN of the Product Server to receive the
query.keywordQuery
: DIS-style query string.It also takes the following optional parameters:
id
: product ID to return in the case of multiple
products.mimeType
: desired MIME type of the product. This
parameter may be specified multiple times to show an in-order preference
for MIME types.It responds with a single product in the MIME type of the product.
Constructor Summary | |
---|---|
ProductServlet()
Constructor for the product servlet. |
Method Summary | |
---|---|
void |
doGet(javax.servlet.http.HttpServletRequest req,
javax.servlet.http.HttpServletResponse res)
Handle a GET request. |
void |
doPost(javax.servlet.http.HttpServletRequest req,
javax.servlet.http.HttpServletResponse res)
Handle a GET request. |
void |
init(javax.servlet.ServletConfig servletConfig)
Initialize the servlet. |
Methods inherited from class javax.servlet.http.HttpServlet |
---|
doDelete, doHead, doOptions, doPut, 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 |
---|
public ProductServlet()
Method Detail |
---|
public void init(javax.servlet.ServletConfig servletConfig) throws javax.servlet.ServletException
init
in interface javax.servlet.Servlet
init
in class javax.servlet.GenericServlet
servletConfig
- The servlet configuration.
javax.servlet.ServletException
- If an error occurs.public void doGet(javax.servlet.http.HttpServletRequest req, javax.servlet.http.HttpServletResponse res) throws javax.servlet.ServletException, IOException
doGet
in class javax.servlet.http.HttpServlet
req
- The request.res
- The response.
javax.servlet.ServletException
- If an error occurs.
IOException
- If an error occurs.public void doPost(javax.servlet.http.HttpServletRequest req, javax.servlet.http.HttpServletResponse res) throws javax.servlet.ServletException, IOException
doPost
in class javax.servlet.http.HttpServlet
req
- The request.res
- The response.
javax.servlet.ServletException
- If an error occurs.
IOException
- If an error occurs.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |