org.deegree.protocol.wpvs.client
Class WPVSClient
java.lang.Object
org.deegree.protocol.wpvs.client.WPVSClient
public class WPVSClient
- extends Object
The WPVSClient
class supports the functionality of sending requests to the Web Perspective View Service
(WPVS).
- Version:
- $Revision: $, $Date: $
- Author:
- Andrei Ionita, last edited by: $Author: ionita $
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
WPVSClient
public WPVSClient(URL url)
- Parameters:
url
- to retrieve the capabilities from
WPVSClient
public WPVSClient(XMLAdapter capabilities)
- retrieve the capabilities from an xml file
- Parameters:
capabilities
-
getQueryableDatasets
public List<String> getQueryableDatasets()
- Returns:
- all datasets that are queryable
getElevationModels
public List<String> getElevationModels()
- Returns:
- all elevation models defined
isOperationSupported
public boolean isOperationSupported(WPVSConstants.WPVSRequestType request)
- Parameters:
request
- the type of WPVSConstants.WPVSRequestType
- Returns:
- whether the request is defined in the getCapabilities xml file
getAddress
public String getAddress(WPVSConstants.WPVSRequestType request,
boolean get)
- Parameters:
request
- the type of WPVSConstants.WPVSRequestType
get
- whether it is a Get or a Post request
- Returns:
- the url of the requested operation
getView
public Pair<BufferedImage,String> getView(URL url)
throws IOException
- Parameters:
url
-
- Returns:
- a
Pair
of BufferedImage
and String
. In case the WPVS returns an image the former
will be used, otherwise an XML response ( as a String ) will be returned in the second value.
- Throws:
IOException
an open source project founded by lat/lon, Bonn, Germany.
For more information visit: http://www.deegree.org]]>