org.deegree_impl.services.wms
Class WMService_Impl

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

public class WMService_Impl
extends OGCWebService_Impl

Since:
1.1
Version:
$Revision: 1.33 $, 1.0. $Revision: 1.33 $, $Date: 2004/05/26 08:50:48 $
Author:
Andreas Poth, last edited by: $Author: poth $

Field Summary
private static WMSCache cache
           
private  WMSCapabilities capabilities
           
 
Constructor Summary
WMService_Impl(WMSCapabilities capabilities)
          Creates a new WMService_Impl object.
 
Method Summary
private  java.lang.Object createHandler(OGCWebServiceRequest request, java.lang.Class requestClass, int operationType)
          creates a handler class for performing the incomming request.
 void doService(OGCWebServiceEvent event)
          receives a WMS request and deligates it to the responsible handle-methods
 OGCWebServiceResponse doService(OGCWebServiceRequest request)
          the method performs the handling of the passed OGCWebServiceEvent directly and returns the result to the calling class/method
private  void handleDescribeLayer(WMSDescribeLayerRequest request)
           
private  WMSGetCapabilitiesResponse handleGetCapabilities(WMSGetCapabilitiesRequest request)
          reads/creates the capabilities of the WMS.
private  OGCWebServiceResponse handleGetLegendGraphic(WMSGetLegendGraphicRequest request)
           
private  OGCWebServiceResponse handleGetScaleBar(WMSGetScaleBarRequest request)
           
private  WMSGetStylesResponse handleGetStyles(WMSGetStylesRequest request)
           
private  void handlePutStyles(WMSPutStylesRequest request)
           
 
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

cache

private static WMSCache cache

capabilities

private WMSCapabilities capabilities
Constructor Detail

WMService_Impl

public WMService_Impl(WMSCapabilities capabilities)
Creates a new WMService_Impl object.

Parameters:
capabilities -
Method Detail

doService

public void doService(OGCWebServiceEvent event)
               throws WebServiceException
receives a WMS request and deligates it to the responsible handle-methods

Parameters:
event - any WMS-request
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

createHandler

private java.lang.Object createHandler(OGCWebServiceRequest request,
                                       java.lang.Class requestClass,
                                       int operationType)
                                throws WebServiceException
creates a handler class for performing the incomming request. The instance that will be created depends on the responsible class the for the submitted request in the WMS capabilities/configuration.

Parameters:
request - request to be performed
requestClass - of the request (WMSGetStylesRequest, WMSFeatureInfoRequest etc.)
operationType - type of the operation to perform by the handler
Throws:
WebServiceException

handleGetCapabilities

private WMSGetCapabilitiesResponse handleGetCapabilities(WMSGetCapabilitiesRequest request)
                                                  throws WebServiceException
reads/creates the capabilities of the WMS.

Parameters:
request - capabilities request
Throws:
WebServiceException

handleGetStyles

private WMSGetStylesResponse handleGetStyles(WMSGetStylesRequest request)
Parameters:
request - get styles request (WMS 1.1.1 - SLD)

handlePutStyles

private void handlePutStyles(WMSPutStylesRequest request)
Parameters:
request - put styles request (WMS 1.1.1 - SLD)

handleDescribeLayer

private void handleDescribeLayer(WMSDescribeLayerRequest request)
Parameters:
request - describe layer request (WMS 1.1.1 - SLD)

handleGetLegendGraphic

private OGCWebServiceResponse handleGetLegendGraphic(WMSGetLegendGraphicRequest request)
                                              throws WebServiceException
Parameters:
request -
Returns:
Throws:
WebServiceException

handleGetScaleBar

private OGCWebServiceResponse handleGetScaleBar(WMSGetScaleBarRequest request)
                                         throws WebServiceException
Throws:
WebServiceException