|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.n52.wps.client.WPSClientSession
public class WPSClientSession
Contains some convenient methods to access and manage WebProcessingSerivces in a very generic way. This is implemented as a singleton.
Method Summary | |
---|---|
boolean |
connect(java.lang.String url)
Connects to a WPS and retrieves Capabilities plus puts all available Descriptions into cache. |
net.opengis.wps.x100.ProcessDescriptionsDocument |
describeAllProcesses(java.lang.String url)
retrieves all current available processdescriptions of a WPS. |
net.opengis.wps.x100.ProcessDescriptionsDocument |
describeProcess(java.lang.String[] processIDs,
java.lang.String serverID)
retrieves the desired description for a service. the retrieved information will not be held in cache! |
boolean |
descriptionsAvailableInCache(java.lang.String serverID)
informs you if the descriptions for the specified service is already in the session. |
void |
disconnect(java.lang.String url)
removes a service from the session |
java.lang.Object |
execute(java.lang.String serverID,
net.opengis.wps.x100.ExecuteDocument execute)
|
java.lang.Object |
execute(java.lang.String serverID,
net.opengis.wps.x100.ExecuteDocument execute,
boolean rawData)
Execute tries to retrieve features encoded as gzip. |
net.opengis.wps.x100.ProcessDescriptionType[] |
getAllProcessDescriptions(java.lang.String wpsUrl)
|
static WPSClientSession |
getInstance()
|
java.util.List<java.lang.String> |
getLoggedServices()
returns the serverIDs of all loggedServices |
net.opengis.wps.x100.ProcessDescriptionType |
getProcessDescription(java.lang.String serverID,
java.lang.String processID)
return the processDescription for a specific process from Cache. |
java.lang.String[] |
getProcessNames(java.lang.String url)
|
java.lang.String[] |
getURLs()
|
net.opengis.wps.x100.CapabilitiesDocument |
getWPSCaps(java.lang.String url)
provides you the cached capabilities for a specified serivce. |
static void |
reset()
This resets the WPSClientSession. |
boolean |
serviceAlreadyRegistered(java.lang.String serverID)
look up, if the service exists already in session. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public static WPSClientSession getInstance()
public static void reset()
public boolean connect(java.lang.String url) throws WPSClientException
url
- the entry point for the service. This is used as id for further identification of the service.
WPSClientException
public void disconnect(java.lang.String url)
url
- public java.util.List<java.lang.String> getLoggedServices()
public boolean descriptionsAvailableInCache(java.lang.String serverID)
serverID
-
public net.opengis.wps.x100.ProcessDescriptionType getProcessDescription(java.lang.String serverID, java.lang.String processID) throws java.io.IOException
serverID
- processID
-
java.io.IOException
public net.opengis.wps.x100.ProcessDescriptionType[] getAllProcessDescriptions(java.lang.String wpsUrl) throws java.io.IOException
java.io.IOException
public boolean serviceAlreadyRegistered(java.lang.String serverID)
public net.opengis.wps.x100.CapabilitiesDocument getWPSCaps(java.lang.String url)
url
-
public net.opengis.wps.x100.ProcessDescriptionsDocument describeAllProcesses(java.lang.String url) throws WPSClientException
url
-
WPSClientException
public net.opengis.wps.x100.ProcessDescriptionsDocument describeProcess(java.lang.String[] processIDs, java.lang.String serverID) throws WPSClientException
processIDs
- one or more processIDsserverID
-
WPSClientException
public java.lang.Object execute(java.lang.String serverID, net.opengis.wps.x100.ExecuteDocument execute, boolean rawData) throws WPSClientException
url
- url of server not the entry additionally defined in the caps.execute
-
WPSClientException
public java.lang.Object execute(java.lang.String serverID, net.opengis.wps.x100.ExecuteDocument execute) throws WPSClientException
WPSClientException
public java.lang.String[] getProcessNames(java.lang.String url) throws java.io.IOException
java.io.IOException
public java.lang.String[] getURLs()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |