org.apache.oodt.cas.product.data
Class DatasetDeliveryServlet

java.lang.Object
  extended by javax.servlet.GenericServlet
      extended by javax.servlet.http.HttpServlet
          extended by org.apache.oodt.cas.product.data.DatasetDeliveryServlet
All Implemented Interfaces:
Serializable, javax.servlet.Servlet, javax.servlet.ServletConfig, DataDeliveryKeys

public class DatasetDeliveryServlet
extends javax.servlet.http.HttpServlet
implements DataDeliveryKeys

Delivers back entire ProductTypes (or Datasets) as zipped up packages.

Version:
$Revision$
Author:
mattmann
See Also:
Serialized Form

Field Summary
 
Fields inherited from interface org.apache.oodt.cas.product.data.DataDeliveryKeys
CONTENT_DISPOSITION_HDR, CONTENT_LENGTH_HDR, CONTENT_TYPE_HDR, FORMAT_ZIP
 
Constructor Summary
DatasetDeliveryServlet()
           
 
Method Summary
protected  void doGet(javax.servlet.http.HttpServletRequest req, javax.servlet.http.HttpServletResponse res)
           
protected  void doPut(javax.servlet.http.HttpServletRequest req, javax.servlet.http.HttpServletResponse res)
          Method requires a single parameter, typeID, specifying a valid ProductType within the filemgr.
 void init(javax.servlet.ServletConfig config)
           
 
Methods inherited from class javax.servlet.http.HttpServlet
doDelete, doHead, doOptions, doPost, 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

DatasetDeliveryServlet

public DatasetDeliveryServlet()
Method Detail

doGet

protected void doGet(javax.servlet.http.HttpServletRequest req,
                     javax.servlet.http.HttpServletResponse res)
              throws javax.servlet.ServletException,
                     IOException
Overrides:
doGet in class javax.servlet.http.HttpServlet
Throws:
javax.servlet.ServletException
IOException

doPut

protected void doPut(javax.servlet.http.HttpServletRequest req,
                     javax.servlet.http.HttpServletResponse res)
              throws javax.servlet.ServletException,
                     IOException
Method requires a single parameter, typeID, specifying a valid ProductType within the filemgr. All Products associated with the given typeID are packaged up (as zip files), and then aggregated and zipped and delivered as an entire collection called a Dataset.

Overrides:
doPut in class javax.servlet.http.HttpServlet
Parameters:
req - Servlet request.
res - Servlet response
Throws:
javax.servlet.ServletException - If any error occurs.
IOException - If an I/O error occurs.

init

public void init(javax.servlet.ServletConfig config)
          throws javax.servlet.ServletException
Specified by:
init in interface javax.servlet.Servlet
Overrides:
init in class javax.servlet.GenericServlet
Throws:
javax.servlet.ServletException


Copyright © 1999-2013
Apache OODT. All Rights Reserved.