public class SClient4WPSSession extends Object implements Serializable
| Modifier and Type | Field and Description |
|---|---|
HashMap<String,net.opengis.wps.x100.ProcessDescriptionsDocument> |
processDescriptions |
| Constructor and Description |
|---|
SClient4WPSSession(String user,
String password)
Initializes a WPS client session.
|
| Modifier and Type | Method and Description |
|---|---|
String |
cancelComputation(String url,
String computationId) |
boolean |
connect(String url)
Connects to a WPS and retrieves Capabilities plus puts all available
Descriptions into cache.
|
boolean |
connectForMonitoring(String url)
Connects to a WPS and retrieves Capabilities plus puts all available
Descriptions into cache.
|
net.opengis.wps.x100.ProcessDescriptionsDocument |
describeAllProcesses(String url)
retrieves all current available ProcessDescriptions of a WPS.
|
net.opengis.wps.x100.ProcessDescriptionsDocument |
describeProcess(String[] processIDs,
String serverID)
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 serverId,
net.opengis.wps.x100.ExecuteDocument execute)
Executes a process at a WPS
|
Object |
executeViaGET(String urlString,
String executeAsGETString)
Executes a process at a WPS
|
net.opengis.wps.x100.ProcessDescriptionType[] |
getAllProcessDescriptions(String wpsUrl)
Delivers all ProcessDescriptions from a WPS
|
List<String> |
getLoggedServices()
returns the serverIDs of all loggedServices
|
net.opengis.wps.x100.ProcessDescriptionType |
getProcessDescription(String serverID,
String processID)
return the processDescription for a specific process from Cache.
|
String[] |
getProcessNames(String url) |
net.opengis.wps.x100.CapabilitiesDocument |
getWPSCaps(String url)
provides you the cached capabilities for a specified service.
|
protected List<String> |
retrievesSingleDescription(InputStream is) |
boolean |
serviceAlreadyRegistered(String serverID)
looks up, if the service exists already in session.
|
public boolean connect(String url) throws org.n52.wps.client.WPSClientException
url - the entry point for the service. This is used as id for
further identification of the service.org.n52.wps.client.WPSClientException - wps client exceptionpublic boolean connectForMonitoring(String url) throws org.n52.wps.client.WPSClientException
url - the entry point for the service. This is used as id for
further identification of the service.org.n52.wps.client.WPSClientException - wps client exceptionpublic void disconnect(String url)
url - urlpublic List<String> getLoggedServices()
public boolean descriptionsAvailableInCache(String serverID)
serverID - server idpublic net.opengis.wps.x100.ProcessDescriptionType getProcessDescription(String serverID, String processID) throws IOException
serverID - server idprocessID - process idIOException - IO exceptionpublic net.opengis.wps.x100.ProcessDescriptionType[] getAllProcessDescriptions(String wpsUrl) throws IOException
wpsUrl - the URL of the WPSIOException - IO exceptionpublic boolean serviceAlreadyRegistered(String serverID)
serverID - service idpublic net.opengis.wps.x100.CapabilitiesDocument getWPSCaps(String url)
url - service urlpublic net.opengis.wps.x100.ProcessDescriptionsDocument describeAllProcesses(String url) throws org.n52.wps.client.WPSClientException
url - service urlorg.n52.wps.client.WPSClientException - WPS Client expcetionpublic net.opengis.wps.x100.ProcessDescriptionsDocument describeProcess(String[] processIDs, String serverID) throws org.n52.wps.client.WPSClientException
processIDs - process idsserverID - server idorg.n52.wps.client.WPSClientException - WPS Client expcetionpublic Object execute(String serverId, net.opengis.wps.x100.ExecuteDocument execute) throws org.n52.wps.client.WPSClientException
serverId - server id url of server not the entry additionally defined in
the caps.execute - Execute documentorg.n52.wps.client.WPSClientException - WPS Client Exceptionprotected List<String> retrievesSingleDescription(InputStream is) throws org.n52.wps.client.WPSClientException
org.n52.wps.client.WPSClientExceptionpublic String[] getProcessNames(String url) throws IOException
IOExceptionpublic Object executeViaGET(String urlString, String executeAsGETString) throws org.n52.wps.client.WPSClientException
urlString - url of server not the entry additionally defined in the caps.executeAsGETString - KVP Execute requestorg.n52.wps.client.WPSClientException - WPS Client exceptionCopyright © 2017. All Rights Reserved.