public class ProductServlet
extends javax.servlet.http.HttpServlet
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 and Description |
---|
ProductServlet()
Constructor for the product servlet.
|
Modifier and Type | Method and Description |
---|---|
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.
|
doDelete, doHead, doOptions, doPut, doTrace, getLastModified, service, service
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.Copyright © 2010–2015 Planetary Data System. All rights reserved.