org.deegree_impl.services.wms
Class RemoteWMService

java.lang.Object
  extended byorg.deegree_impl.services.OGCWebService_Impl
      extended byorg.deegree_impl.services.wms.RemoteWMService
All Implemented Interfaces:
OGCWebService

public class RemoteWMService
extends OGCWebService_Impl

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

Version:
$Revision: 1.17 $
Author:
Andreas Poth

Nested Class Summary
protected  class RemoteWMService.RemoteWMSHandler
           
 
Field Summary
protected  java.util.HashMap addresses
           
protected  WMSCapabilities capabilities
           
 
Constructor Summary
RemoteWMService(WMSCapabilities capabilities)
          Creates a new instance of RemoteWMService
 
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
protected  void handleDescribeLayer(WMSDescribeLayerRequest request, OGCWebServiceClient client)
           
protected  void handleFeatureInfo(WMSGetFeatureInfoRequest request, OGCWebServiceClient client)
          reads feature infos from the remote WMS by performing a FeatureInfo request against it.
protected  void handleGetCapabilities(WMSGetCapabilitiesRequest request, OGCWebServiceClient client)
          reads the capabilities from the remote WMS by performing a GetCapabilities request against it.
protected  void handleGetLegendGraphic(WMSGetLegendGraphicRequest request, OGCWebServiceClient client)
           
protected  void handleGetMap(WMSGetMapRequest request, OGCWebServiceClient client)
          performs a GetMap request against the remote service.
protected  void handleGetStyles(WMSGetStylesRequest request, OGCWebServiceClient client)
           
protected  void handlePutStyles(WMSPutStylesRequest request, OGCWebServiceClient client)
           
 
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

addresses

protected java.util.HashMap addresses

capabilities

protected WMSCapabilities capabilities
Constructor Detail

RemoteWMService

public RemoteWMService(WMSCapabilities capabilities)
                throws WebServiceException
Creates a new instance of RemoteWMService

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

handleGetMap

protected void handleGetMap(WMSGetMapRequest request,
                            OGCWebServiceClient client)
                     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
Throws:
WebServiceException

handleFeatureInfo

protected void handleFeatureInfo(WMSGetFeatureInfoRequest request,
                                 OGCWebServiceClient client)
                          throws WebServiceException
reads feature infos from the remote WMS 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 WMS's

Parameters:
request - feature info request
Throws:
WebServiceException

handleGetCapabilities

protected void handleGetCapabilities(WMSGetCapabilitiesRequest request,
                                     OGCWebServiceClient client)
                              throws WebServiceException
reads the capabilities from the remote WMS by performing a GetCapabilities request against it.

Parameters:
request - capabilities request
Throws:
WebServiceException

handleGetStyles

protected void handleGetStyles(WMSGetStylesRequest request,
                               OGCWebServiceClient client)
                        throws WebServiceException
Parameters:
request - get styles request (WMS 1.1.1 - SLD)
Throws:
WebServiceException

handlePutStyles

protected void handlePutStyles(WMSPutStylesRequest request,
                               OGCWebServiceClient client)
                        throws WebServiceException
Parameters:
request - put styles request (WMS 1.1.1 - SLD)
Throws:
WebServiceException

handleDescribeLayer

protected void handleDescribeLayer(WMSDescribeLayerRequest request,
                                   OGCWebServiceClient client)
                            throws WebServiceException
Parameters:
request - describe layer request (WMS 1.1.1 - SLD)
Throws:
WebServiceException

handleGetLegendGraphic

protected void handleGetLegendGraphic(WMSGetLegendGraphicRequest request,
                                      OGCWebServiceClient client)
                               throws WebServiceException
Parameters:
request - describe layer request (WMS 1.1.1 - SLD)
Throws:
WebServiceException