jpl.pds.server
Class FileQueryHandler
java.lang.Object
jpl.pds.server.FileQueryHandler
- All Implemented Interfaces:
- jpl.eda.product.LargeProductQueryHandler, jpl.eda.product.QueryHandler
public class FileQueryHandler
- extends Object
- implements jpl.eda.product.LargeProductQueryHandler
Handle product queries for files from the PDS jukebox.
This class is a product server query handler that accepts queries of the form
ONLINE_FILE_SPECIFICATION_NAME = some/file and RETURN_TYPE = something.
- Author:
- Kelly.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
PRODUCT_DIR_PROPERTY
public static final String PRODUCT_DIR_PROPERTY
- Name of the property that specifies where products are kept.
- See Also:
- Constant Field Values
ACCESSOR_PROPERTY
public static final String ACCESSOR_PROPERTY
- Name of the property that specifies what file accessor to use.
- See Also:
- Constant Field Values
FileQueryHandler
public FileQueryHandler()
query
public jpl.eda.xmlquery.XMLQuery query(jpl.eda.xmlquery.XMLQuery query)
- Specified by:
query
in interface jpl.eda.product.QueryHandler
retrieveChunk
public byte[] retrieveChunk(String id,
long offset,
int length)
throws jpl.eda.product.ProductException
- Specified by:
retrieveChunk
in interface jpl.eda.product.LargeProductQueryHandler
- Throws:
jpl.eda.product.ProductException
close
public void close(String id)
throws jpl.eda.product.ProductException
- Specified by:
close
in interface jpl.eda.product.LargeProductQueryHandler
- Throws:
jpl.eda.product.ProductException
main
public static void main(String[] argv)
- Command-line driver.
- Parameters:
argv
- Command-line arguments.
Copyright © 2005-2012 Planetary Data System. All Rights Reserved.