org.deegree_impl.services.wcs
Class RemoteWCService

java.lang.Object
  extended byorg.deegree_impl.services.OGCWebService_Impl
      extended byorg.deegree_impl.services.wcs.RemoteWCService
All Implemented Interfaces:
OGCWebService

public class RemoteWCService
extends OGCWebService_Impl

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

Version:
$Revision: 1.8 $
Author:
Andreas Poth

Field Summary
private  java.lang.String remoteAddress
           
 
Fields inherited from class org.deegree_impl.services.OGCWebService_Impl
capabilities
 
Constructor Summary
RemoteWCService(java.lang.String remoteAddress)
          Creates a new instance of RemoteWCService
 
Method Summary
 void doService(OGCWebServiceEvent event)
          the implementation of this method performs the handling of the passed OGCWebServiceEvent in an new own Thread.
 OGCWebServiceResponse doService(OGCWebServiceRequest request)
          the method performs the handling of the passed OGCWebServiceEvent directly and returns the result to the calling class/method
private  OGCWebServiceEvent handleDescribeCoverageLayer(WCSDescribeCoverageLayerRequest request)
          reads feature infos from the remote WCS by performing a FeatureInfo request against it.
private  OGCWebServiceEvent handleGetCapabilities(WCSGetCapabilitiesRequest request)
          reads the capabilities from the remote WCS by performing a GetCapabilities request against it.
private  OGCWebServiceEvent handleGetCoverage(WCSGetCoverageRequest request)
          performs a GetMap request against the remote service.
 
Methods inherited from class org.deegree_impl.services.OGCWebService_Impl
getCapabilities
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

remoteAddress

private java.lang.String remoteAddress
Constructor Detail

RemoteWCService

public RemoteWCService(java.lang.String remoteAddress)
Creates a new instance of RemoteWCService

Method Detail

doService

public void doService(OGCWebServiceEvent event)
               throws WebServiceException
Description copied from interface: OGCWebService
the implementation of this method performs the handling of the passed OGCWebServiceEvent in an new own Thread. The receiver of the response to the request must implement the OGCWebServiceClient interface

Parameters:
event - request to be performed
Throws:
WebServiceException

doService

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

Parameters:
request - request (WMS, WCS, WFS, WCAS, WCTS, WTS, Gazetter) to perform
Throws:
WebServiceException

handleGetCoverage

private OGCWebServiceEvent handleGetCoverage(WCSGetCoverageRequest request)
                                      throws WebServiceException
performs a GetMap request against the remote service. The result contains the map decoded in the desired format as a byte array.

Parameters:
request - GetMap request
Returns:
map (image) in the desired format as byte array
Throws:
WebServiceException

handleDescribeCoverageLayer

private OGCWebServiceEvent handleDescribeCoverageLayer(WCSDescribeCoverageLayerRequest request)
                                                throws WebServiceException
reads feature infos from the remote WCS by performing a FeatureInfo request against it. As long the result of a FeatureInfo request is generic (for usual it is som HTML) it isn't easy to combine the result with that of other WCS's

Parameters:
request - feature info request
Returns:
feaure info(s) decoded in the requested fromat
Throws:
WebServiceException

handleGetCapabilities

private OGCWebServiceEvent handleGetCapabilities(WCSGetCapabilitiesRequest request)
                                          throws WebServiceException
reads the capabilities from the remote WCS by performing a GetCapabilities request against it.

Parameters:
request - capabilities request
Throws:
WebServiceException