deegree 2.3 (2010/04/09 10:10 build-4-official)

org.deegree.ogcwebservices.wcs
Class RemoteWCService

java.lang.Object
  extended by org.deegree.ogcwebservices.wcs.RemoteWCService
All Implemented Interfaces:
OGCWebService

public class RemoteWCService
extends Object
implements OGCWebService

An instance of the class acts as a wrapper to a remote WMS.

Version:
$Revision: 11921 $
Author:
Andreas Poth

Field Summary
protected  HashMap<String,URL> addresses
           
protected  WCSCapabilities capabilities
           
 
Constructor Summary
RemoteWCService(WCSCapabilities capabilities)
          Creates a new instance of RemoteWMService
 
Method Summary
 Object doService(OGCWebServiceRequest request)
          the method performs the handling of the passed OGCWebServiceEvent directly and returns the result to the calling class/method
 OGCCapabilities getCapabilities()
          returns the capabilities of a OGC web service
protected  String getInputStreamContent(InputStream is)
           
protected  CoverageDescription handleDescribeCoverage(DescribeCoverage request)
           
protected  WCSCapabilities handleGetCapabilities(WCSGetCapabilities request)
          reads the capabilities from the remote WMS by performing a GetCapabilities request against it.
protected  Object handleGetCoverage(GetCoverage request)
          performs a GetCoverage request against a remote service.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

addresses

protected HashMap<String,URL> addresses

capabilities

protected WCSCapabilities capabilities
Constructor Detail

RemoteWCService

public RemoteWCService(WCSCapabilities capabilities)
Creates a new instance of RemoteWMService

Parameters:
capabilities -
Method Detail

getCapabilities

public OGCCapabilities getCapabilities()
Description copied from interface: OGCWebService
returns the capabilities of a OGC web service

Specified by:
getCapabilities in interface OGCWebService
Returns:
the capabilities of a OGC web service

doService

public Object doService(OGCWebServiceRequest request)
                 throws OGCWebServiceException
the method performs the handling of the passed OGCWebServiceEvent directly and returns the result to the calling class/method

Specified by:
doService in interface OGCWebService
Parameters:
request - request to perform
Returns:
result of a service operation
Throws:
OGCWebServiceException

handleGetCoverage

protected Object handleGetCoverage(GetCoverage request)
                            throws OGCWebServiceException
performs a GetCoverage request against a remote service. The result contains the Coverage decoded in the desired format as a byte array.

Parameters:
request - GetCoverage request
Returns:
the requested coverage
Throws:
OGCWebServiceException - if the url in the request is null

handleDescribeCoverage

protected CoverageDescription handleDescribeCoverage(DescribeCoverage request)
                                              throws OGCWebServiceException
Parameters:
request - DescribeCoverage to perform
Returns:
the response of the DescribeCoverage request.
Throws:
OGCWebServiceException - if the request could not be excuted correctly.

handleGetCapabilities

protected WCSCapabilities handleGetCapabilities(WCSGetCapabilities request)
                                         throws OGCWebServiceException
reads the capabilities from the remote WMS by performing a GetCapabilities request against it.

Parameters:
request - capabilities request
Returns:
remote capabilities
Throws:
OGCWebServiceException - if the request could not be executed correctly.

getInputStreamContent

protected String getInputStreamContent(InputStream is)
                                throws IOException
Parameters:
is -
Returns:
thr content as String
Throws:
IOException

deegree 2.3 (2010/04/09 10:10 build-4-official)

an open source project founded by lat/lon, Bonn, Germany.
For more information visit: http://www.deegree.org