gov.nasa.pds.transport
Class OFSNFileHandler

java.lang.Object
  extended by gov.nasa.pds.transport.OFSNFileHandler
All Implemented Interfaces:
org.apache.oodt.product.handlers.ofsn.metadata.OFSNMetKeys, org.apache.oodt.product.handlers.ofsn.metadata.OFSNXMLConfigMetKeys, org.apache.oodt.product.handlers.ofsn.metadata.OFSNXMLMetKeys, org.apache.oodt.product.handlers.ofsn.metadata.XMLQueryMetKeys, org.apache.oodt.product.LargeProductQueryHandler, org.apache.oodt.product.QueryHandler

public class OFSNFileHandler
extends Object
implements org.apache.oodt.product.LargeProductQueryHandler, org.apache.oodt.product.handlers.ofsn.metadata.XMLQueryMetKeys, org.apache.oodt.product.handlers.ofsn.metadata.OFSNXMLMetKeys, org.apache.oodt.product.handlers.ofsn.metadata.OFSNMetKeys, org.apache.oodt.product.handlers.ofsn.metadata.OFSNXMLConfigMetKeys

An extensible implementation of the PDS-inspired Online File Specification Name (OFSN) style product server. See the ofsn-ps.xml file for a detailed specification of the configuration and motivation behind this product handler.

Version:
$Revision$
Author:
mattmann

Field Summary
 
Fields inherited from interface org.apache.oodt.product.handlers.ofsn.metadata.XMLQueryMetKeys
OFSN, RETURN_TYPE
 
Fields inherited from interface org.apache.oodt.product.handlers.ofsn.metadata.OFSNXMLMetKeys
DIR_ENTRY_TAG, DIR_LISTING_NS, DIR_RESULT_TAG, FILE_SIZE_TAG, OFSN_TAG, XML_MIME_TYPE
 
Fields inherited from interface org.apache.oodt.product.handlers.ofsn.metadata.OFSNMetKeys
GET_CMD, LISTING_CMD, OFSN_COMPUTE_DIR_SIZE, OFSN_COMPUTE_FILE_SIZE, OFSN_XML_CONF_FILE_KEY
 
Fields inherited from interface org.apache.oodt.product.handlers.ofsn.metadata.OFSNXMLConfigMetKeys
HANDLER_CLASSNAME_ATTR, HANDLER_NAME_ATTR, HANDLER_TAG, HANDLER_TYPE_ATTR, OFSN_CFG_ID_ATTR, OFSN_CFG_NAME_ATTR, OFSN_PRODUCT_ROOT_ATTR, PROPERTY_MIMETYPE_ATTR, PROPERTY_NAME_ATTR, PROPERTY_TAG, PROPERTY_VALUE_ATTR
 
Constructor Summary
OFSNFileHandler()
           
 
Method Summary
 void close(String id)
           
 org.apache.oodt.xmlquery.XMLQuery query(org.apache.oodt.xmlquery.XMLQuery xmlQuery)
           
 byte[] retrieveChunk(String id, long offset, int length)
           
 void writeToFile(File[] fileArray, String optArg, OutputStream outStream)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

OFSNFileHandler

public OFSNFileHandler()
                throws InstantiationException
Throws:
InstantiationException
Method Detail

query

public org.apache.oodt.xmlquery.XMLQuery query(org.apache.oodt.xmlquery.XMLQuery xmlQuery)
                                        throws org.apache.oodt.product.ProductException
Specified by:
query in interface org.apache.oodt.product.QueryHandler
Throws:
org.apache.oodt.product.ProductException

close

public void close(String id)
           throws org.apache.oodt.product.ProductException
Specified by:
close in interface org.apache.oodt.product.LargeProductQueryHandler
Throws:
org.apache.oodt.product.ProductException

retrieveChunk

public byte[] retrieveChunk(String id,
                            long offset,
                            int length)
                     throws org.apache.oodt.product.ProductException
Specified by:
retrieveChunk in interface org.apache.oodt.product.LargeProductQueryHandler
Throws:
org.apache.oodt.product.ProductException

writeToFile

public void writeToFile(File[] fileArray,
                        String optArg,
                        OutputStream outStream)


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