public class WPSClientSession extends Object
| Modifier and Type | Field and Description |
|---|---|
static String |
SERVICE |
static String |
VERSION_100 |
static String |
VERSION_200 |
| Constructor and Description |
|---|
WPSClientSession()
Initializes a WPS client session.
|
| Modifier and Type | Method and Description |
|---|---|
void |
cancelAsyncExecute() |
int |
checkService(String url,
String payload) |
boolean |
connect(String url,
String version)
Connects to a WPS and retrieves Capabilities plus puts all available
Descriptions into cache.
|
List<Process> |
describeProcess(String[] processIDs,
String serverID,
String version)
retrieves the desired description for a service.
|
boolean |
descriptionsAvailableInCache(String serverID)
informs you if the descriptions for the specified service is already in
the session.
|
void |
disconnect(String url)
removes a service from the session
|
Object |
execute(String url,
Execute execute,
String version)
Executes a process at a WPS
|
Object |
executeAsyncGetResponseImmediately(String url,
Execute execute,
String version)
Executes a process at a WPS
|
List<Process> |
getAllProcessDescriptions(String wpsUrl)
Delivers all ProcessDescriptions from a WPS
|
String |
getBearerToken() |
static WPSClientSession |
getInstance() |
List<String> |
getLoggedServices()
returns the serverIDs of all loggedServices
|
Process |
getProcessDescription(String serverID,
String processID,
String version)
return the processDescription for a specific process from Cache.
|
String[] |
getProcessNames(String url) |
Object |
getResultFromStatusLocation(String statusLocation)
Get the result from a status location URL
|
WPSCapabilities |
getWPSCaps(String url)
provides you the cached capabilities for a specified service.
|
boolean |
isUseBearerToken() |
static void |
reset()
This resets the WPSClientSession.
|
Result |
retrieveProcessResult(String url,
String jobId) |
boolean |
serviceAlreadyRegistered(String serverID)
looks up, if the service exists already in session.
|
void |
setBearerToken(String bearerToken) |
void |
setUseBearerToken(boolean useBearerToken) |
public static final String VERSION_100
public static final String VERSION_200
public static final String SERVICE
public static WPSClientSession getInstance()
public static void reset()
public boolean connect(String url, String version) throws WPSClientException
url - the entry point for the service. This is used as id for
further identification of the service.version - the version of the WPSWPSClientException - if the capabilities could not be requestedpublic void disconnect(String url)
url - WPS URLpublic List<String> getLoggedServices()
public boolean descriptionsAvailableInCache(String serverID)
serverID - WPS URLpublic Process getProcessDescription(String serverID, String processID, String version)
serverID - WPS URLprocessID - id of the processversion - the version of the WPSpublic List<Process> getAllProcessDescriptions(String wpsUrl)
wpsUrl - the URL of the WPSpublic boolean serviceAlreadyRegistered(String serverID)
serverID - the URL of the WPSpublic WPSCapabilities getWPSCaps(String url)
url - WPS URLpublic List<Process> describeProcess(String[] processIDs, String serverID, String version) throws WPSClientException
processIDs - one or more process IDsserverID - WPS URLversion - WPS versionWPSClientException - of the process description could not be requestedpublic Object executeAsyncGetResponseImmediately(String url, Execute execute, String version) throws WPSClientException, IOException
url - url of server not the entry additionally defined in the caps.execute - Execute documentversion - the version of the WPSWPSClientException - if the initial execute request failedIOException - if subsequent requests failed in async modepublic Object execute(String url, Execute execute, String version) throws WPSClientException, IOException
url - url of server not the entry additionally defined in the caps.execute - Execute documentversion - the version of the WPSWPSClientException - if the initial execute request failedIOException - if subsequent requests failed in async modepublic String[] getProcessNames(String url) throws IOException
IOExceptionpublic void cancelAsyncExecute()
public String getBearerToken()
public void setBearerToken(String bearerToken)
public boolean isUseBearerToken()
public void setUseBearerToken(boolean useBearerToken)
public Result retrieveProcessResult(String url, String jobId) throws IOException, WPSClientException
IOExceptionWPSClientExceptionpublic Object getResultFromStatusLocation(String statusLocation) throws MalformedURLException, WPSClientException, IOException
statusLocation - The status location URLMalformedURLException - if the status location URL is malformedWPSClientException - if an exception concerning WPS communication occurredIOException - if en exception during the general HTTPVcommunication
occurredCopyright © 2017–2020 52°North Initiative for Geospatial Open Source Software GmbH. All rights reserved.