|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectgov.nasa.pds.portal.product.ProductClient
public class ProductClient
Client access to a product service.
Constructor Summary | |
---|---|
ProductClient(String serviceID)
Creates a new ProductClient instance. |
Method Summary | |
---|---|
void |
close(String productID)
Close off a large product. |
jpl.eda.xmlquery.XMLQuery |
query(jpl.eda.xmlquery.XMLQuery q)
Query the product server. |
byte[] |
retrieveChunk(String productID,
long offset,
int length)
Retrieve a chunk from a large product. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ProductClient(String serviceID) throws jpl.eda.product.ProductException
ProductClient
instance.
serviceID
- Name of the product server to contact.
jpl.eda.product.ProductException
- if an error occurs.Method Detail |
---|
public jpl.eda.xmlquery.XMLQuery query(jpl.eda.xmlquery.XMLQuery q) throws jpl.eda.product.ProductException
q
- Query
jpl.eda.product.ProductException
- if an error occurs.public byte[] retrieveChunk(String productID, long offset, int length) throws jpl.eda.product.ProductException
retrieveChunk
in interface jpl.eda.product.Retriever
productID
- Product ID.offset
- Where in the product to retrieve the data.length
- How much data to get.
jpl.eda.product.ProductException
- if an error occurs.public void close(String productID) throws jpl.eda.product.ProductException
close
in interface jpl.eda.product.Retriever
productID
- Product ID.
jpl.eda.product.ProductException
- if an error occurs.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |