gov.nasa.pds.portal.product
Class ProductServlet

java.lang.Object
  extended by javax.servlet.GenericServlet
      extended by javax.servlet.http.HttpServlet
          extended by gov.nasa.pds.portal.product.ProductServlet
All Implemented Interfaces:
Serializable, javax.servlet.Servlet, javax.servlet.ServletConfig

public class ProductServlet
extends javax.servlet.http.HttpServlet

Servlet that returns products in response to OODT queries.

This servlet accepts the following required parameters:

It also takes the following optional parameters:

It responds with a single product in the MIME type of the product.

Author:
Kelly
See Also:
Serialized Form

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

ProductServlet

public ProductServlet()
Constructor for the product servlet.

Method Detail

init

public void init(javax.servlet.ServletConfig servletConfig)
          throws javax.servlet.ServletException
Initialize the servlet.

Specified by:
init in interface javax.servlet.Servlet
Overrides:
init in class javax.servlet.GenericServlet
Parameters:
servletConfig - The servlet configuration.
Throws:
javax.servlet.ServletException - If an error occurs.

doGet

public void doGet(javax.servlet.http.HttpServletRequest req,
                  javax.servlet.http.HttpServletResponse res)
           throws javax.servlet.ServletException,
                  IOException
Handle a GET request.

Overrides:
doGet in class javax.servlet.http.HttpServlet
Parameters:
req - The request.
res - The response.
Throws:
javax.servlet.ServletException - If an error occurs.
IOException - If an error occurs.

doPost

public void doPost(javax.servlet.http.HttpServletRequest req,
                   javax.servlet.http.HttpServletResponse res)
            throws javax.servlet.ServletException,
                   IOException
Handle a GET request.

Overrides:
doPost in class javax.servlet.http.HttpServlet
Parameters:
req - The request.
res - The response.
Throws:
javax.servlet.ServletException - If an error occurs.
IOException - If an error occurs.


Copyright © 2010–2015 Planetary Data System. All rights reserved.