org.deegree.protocol.wpvs.client
Class WPVSClient

java.lang.Object
  extended by 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 $

Constructor Summary
WPVSClient(URL url)
           
WPVSClient(XMLAdapter capabilities)
          retrieve the capabilities from an xml file
 
Method Summary
 String getAddress(WPVSConstants.WPVSRequestType request, boolean get)
           
 List<String> getElevationModels()
           
 List<String> getQueryableDatasets()
           
 Pair<BufferedImage,String> getView(URL url)
           
 boolean isOperationSupported(WPVSConstants.WPVSRequestType request)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

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 -
Method Detail

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


Copyright © 2011. All Rights Reserved.