|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectgov.nasa.pds.transport.RegistryProductHandler
public class RegistryProductHandler
This Apache OODT Product Server handler accepts a query containing one or more Registry Service identifiers, queries the Registry Service for the associated files and returns a package containing those files back to the calling application.
Constructor Summary | |
---|---|
RegistryProductHandler()
|
Method Summary | |
---|---|
void |
close(String id)
Close off a product. |
org.apache.oodt.xmlquery.XMLQuery |
query(org.apache.oodt.xmlquery.XMLQuery q)
Run a query. |
byte[] |
retrieveChunk(String id,
long offset,
int length)
Retrieve a chunk of a product. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public RegistryProductHandler()
Method Detail |
---|
public org.apache.oodt.xmlquery.XMLQuery query(org.apache.oodt.xmlquery.XMLQuery q) throws org.apache.oodt.product.ProductException
query
in interface org.apache.oodt.product.QueryHandler
q
- The query.
org.apache.oodt.product.ProductException
- if an error occurs.public byte[] retrieveChunk(String id, long offset, int length) throws org.apache.oodt.product.ProductException
retrieveChunk
in interface org.apache.oodt.product.LargeProductQueryHandler
id
- Identifier of the product in the form of a file specification.offset
- Where in the product to get a chunk of it.length
- How much of the product to get.
org.apache.oodt.product.ProductException
- if an error occurs.public void close(String id) throws org.apache.oodt.product.ProductException
IOException
when closing a file.
close
in interface org.apache.oodt.product.LargeProductQueryHandler
id
- Product ID.
org.apache.oodt.product.ProductException
- if an error occurs.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |