public class PlainMotuClient extends Object
| Constructor and Description |
|---|
PlainMotuClient(String serviceURL) |
| Modifier and Type | Method and Description |
|---|---|
StatusModeResponse |
checkStatus(String requestId)
Check the status of a submitted request
|
void |
describeCoverage(DownloadRequest request) |
ProductMetadataInfo |
describeProduct(DownloadRequest request)
Retrieve metadata about a product
|
CASClient |
getCasProxy()
Return the proxy to the CAS sever.
|
String |
getServiceURL()
Return the endpoint of the Motu server.
|
RequestSize |
getSize(DownloadRequest request)
Retrieves an estimation of the size of the response
|
StatusModeResponse |
queueProductDownload(DownloadRequest request)
Asynchronously submit a request for a dataset
|
void |
setPassword(String password)
Set the passowrd to use when connecting to the Motu server.
|
void |
setUsername(String username)
Set the username to use when connecting to the Motu server.
|
StatusModeResponse |
waitForComplete(String requestId)
Polls the server until the request has been fulfilled.
|
public PlainMotuClient(String serviceURL)
public void setUsername(String username)
username - the username.public void setPassword(String password)
password - the password.public String getServiceURL()
public StatusModeResponse queueProductDownload(DownloadRequest request) throws Exception
request - Exceptionpublic RequestSize getSize(DownloadRequest request) throws Exception
request - all parameters also accepted by "downloadProdyct"Exceptionpublic ProductMetadataInfo describeProduct(DownloadRequest request) throws Exception
request - mandatory parameters are "service" and "product"Exceptionpublic void describeCoverage(DownloadRequest request) throws Exception
request - mandatory parameters are "service" and "product"Exceptionpublic StatusModeResponse checkStatus(String requestId) throws Exception
requestId - the id of the request to check status for.Exceptionpublic StatusModeResponse waitForComplete(String requestId) throws Exception
requestId - the id of the requestExceptionpublic CASClient getCasProxy()
Copyright © 2017. All Rights Reserved.