org.deegree_impl.services.wms
Class GetLegendGraphicHandler

java.lang.Object
  extended byorg.deegree_impl.services.wms.GetLegendGraphicHandler

class GetLegendGraphicHandler
extends java.lang.Object

performs a GetLegendGraphic request. The capability of the deegree implementation is limited to handle requests containing a named style or using the (named) styles defined in a passed or referenced SLD. featuretype and rule are not supported yet.

Since:
1.1
Version:
$Revision: 1.5 $, 1.0. $Revision: 1.5 $, $Date: 2004/04/07 06:43:50 $
Author:
Andreas Poth, last edited by: $Author: poth $

Field Summary
private  WMSCapabilities capabilities
           
private  WMSGetLegendGraphicRequest request
           
private  StyledLayerDescriptor sld
           
 
Constructor Summary
GetLegendGraphicHandler(WMSCapabilities capabilities, WMSGetLegendGraphicRequest request)
          Creates a new GetMapHandler object.
 
Method Summary
private  LegendElement getFromSLDStyle()
          creates a LegendElement from a style defined in the SLD document passed/referenced by/in the request
private  LegendElement getFromWellKnownStyle()
          creates a LegendElement from a style known by the WMS
private  Style getNamedStyle(java.lang.String name)
           
private  LegendElement getSymbol(WMSGetLegendGraphicRequest request)
           
 WMSGetLegendGraphicResponse performGetLegendGraphic()
          performs the request and returns the result of it.
private  void validate(WMSGetLegendGraphicRequest request)
          validates if the passed request is valid against the WMS it was sent to and the SLD maybe contained or referenced in/by the request.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

capabilities

private WMSCapabilities capabilities

sld

private StyledLayerDescriptor sld

request

private WMSGetLegendGraphicRequest request
Constructor Detail

GetLegendGraphicHandler

public GetLegendGraphicHandler(WMSCapabilities capabilities,
                               WMSGetLegendGraphicRequest request)
                        throws WebServiceException
Creates a new GetMapHandler object.

Parameters:
request - request to perform
Method Detail

performGetLegendGraphic

public WMSGetLegendGraphicResponse performGetLegendGraphic()
                                                    throws WebServiceException
performs the request and returns the result of it.

Throws:
WebServiceException

validate

private void validate(WMSGetLegendGraphicRequest request)
               throws WebServiceException
validates if the passed request is valid against the WMS it was sent to and the SLD maybe contained or referenced in/by the request.

Throws:
WebServiceException

getNamedStyle

private Style getNamedStyle(java.lang.String name)

getSymbol

private LegendElement getSymbol(WMSGetLegendGraphicRequest request)
                         throws WebServiceException
Parameters:
request -
Returns:
Throws:
WebServiceException

getFromWellKnownStyle

private LegendElement getFromWellKnownStyle()
                                     throws WebServiceException
creates a LegendElement from a style known by the WMS

Throws:
WebServiceException

getFromSLDStyle

private LegendElement getFromSLDStyle()
                               throws WebServiceException
creates a LegendElement from a style defined in the SLD document passed/referenced by/in the request

Throws:
WebServiceException