deegree 2.5 (2011/06/29 09:44 build-8-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 java.lang.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  java.util.HashMap<java.lang.String,java.net.URL> addresses
           
protected  WCSCapabilities capabilities
           
 
Constructor Summary
RemoteWCService(WCSCapabilities capabilities)
          Creates a new instance of RemoteWMService
 
Method Summary
 java.lang.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  java.lang.String getInputStreamContent(java.io.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  java.lang.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 java.util.HashMap<java.lang.String,java.net.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 java.lang.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 java.lang.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 java.lang.String getInputStreamContent(java.io.InputStream is)
                                          throws java.io.IOException
Parameters:
is -
Returns:
thr content as String
Throws:
java.io.IOException

deegree 2.5 (2011/06/29 09:44 build-8-official)

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