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 |
connect(String url,
boolean refresh) |
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) |
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 - WPSClientExceptionpublic boolean connect(String url, boolean refresh) throws org.n52.wps.client.WPSClientException
org.n52.wps.client.WPSClientExceptionpublic 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 - WPSClientExceptionpublic 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 - IOExceptionpublic net.opengis.wps.x100.ProcessDescriptionType[] getAllProcessDescriptions(String wpsUrl) throws IOException
wpsUrl - the URL of the WPSIOException - IOExceptionpublic boolean serviceAlreadyRegistered(String serverID)
serverID - server idpublic net.opengis.wps.x100.CapabilitiesDocument getWPSCaps(String url)
url - urlpublic net.opengis.wps.x100.ProcessDescriptionsDocument describeAllProcesses(String url) throws org.n52.wps.client.WPSClientException
url - urlorg.n52.wps.client.WPSClientException - WPSClientExceptionpublic net.opengis.wps.x100.ProcessDescriptionsDocument describeProcess(String[] processIDs, String serverID) throws org.n52.wps.client.WPSClientException
processIDs - one or more processIDsserverID - server idorg.n52.wps.client.WPSClientException - WPSClientExpcetionpublic Object execute(String serverID, net.opengis.wps.x100.ExecuteDocument execute) throws org.n52.wps.client.WPSClientException
serverID - server idexecute - exceute documentorg.n52.wps.client.WPSClientException - WPSClientExceptionprotected 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 - WSPClientExceptionCopyright © 2021. All Rights Reserved.