public class CasProductJaxrsService extends Object
references
and products
as
JAX-RS resources converted to different formats.Constructor and Description |
---|
CasProductJaxrsService() |
Modifier and Type | Method and Description |
---|---|
XmlRpcFileManagerClient |
getContextClient()
Gets the file manager client instance from the servlet context.
|
File |
getContextWorkingDir()
Gets the file manager's working directory from the servlet context.
|
DatasetResource |
getDataset(String productTypeId)
Gets an HTTP response that represents a set of
products
from the file manager. |
ProductResource |
getProduct(String productId)
Gets an HTTP response that represents a
Product from the file
manager. |
ReferenceResource |
getReference(String productId,
int refIndex)
|
TransferResource |
getTransfer(String dataStoreRef)
Gets an HTTP response that represents the status of a currently active
file transfer for the file manager.
|
TransfersResource |
getTransfers(String productId)
Gets an HTTP response that represents the statuses of all currently active
file transfers for the file manager, optionally filtered by product ID.
|
public ReferenceResource getReference(String productId, int refIndex)
public ProductResource getProduct(String productId)
Product
from the file
manager.productId
- the ID of the productProduct
from the file
managerpublic DatasetResource getDataset(String productTypeId)
products
from the file manager.productTypeId
- the ID of the ProductType
for the data set or
"ALL" to denote all product typesproducts
from the file managerpublic TransferResource getTransfer(String dataStoreRef)
dataStoreRef
- the data store reference for the file being transferredpublic TransfersResource getTransfers(String productId)
productId
- the ID of a product or ALL to denote all productspublic File getContextWorkingDir() throws CasProductException
Exception
- if an object cannot be retrieved from the context
attributeCasProductException
public XmlRpcFileManagerClient getContextClient() throws CasProductException
Exception
- if an object cannot be retrieved from the context
attributeCasProductException
Copyright © 1999–2017 Apache OODT. All rights reserved.