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

org.deegree.ogcwebservices.wms
Class DefaultGetMapHandler

java.lang.Object
  extended by org.deegree.ogcwebservices.wms.DefaultGetMapHandler
All Implemented Interfaces:
GetMapHandler

public class DefaultGetMapHandler
extends java.lang.Object
implements GetMapHandler

Version:
$Revision: 18195 $
Author:
Andreas Poth

Field Summary
(package private)  java.util.HashMap<java.lang.String,java.lang.String> sqls
           
(package private)  boolean version130
           
 
Constructor Summary
DefaultGetMapHandler(WMSConfigurationType configuration, GetMap request)
          Creates a new GetMapHandler object.
 
Method Summary
 java.util.List<java.util.concurrent.Callable<java.lang.Object>> constructThemes()
           
 WMSConfigurationType getConfiguration()
          returns the configuration used by the handler
 UserStyle getPredefinedStyle(java.lang.String styleName, java.lang.String layerName, Layer layer)
           
protected  GetMap getRequest()
           
protected  CoordinateSystem getRequestCRS()
           
 OGCWebServiceResponse performGetMap()
          performs a GetMap request and returns the result encapsulated within a GetMapResult object.
 GetMapResult render(Theme[] themes, OGCWebServiceException exce)
           
 GetMapResult renderMap(java.util.List<ExecutionFinishedEvent<java.lang.Object>> results)
          renders the map from the DisplayElements
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

version130

boolean version130

sqls

java.util.HashMap<java.lang.String,java.lang.String> sqls
Constructor Detail

DefaultGetMapHandler

public DefaultGetMapHandler(WMSConfigurationType configuration,
                            GetMap request)
Creates a new GetMapHandler object.

Parameters:
configuration -
request - request to perform
Method Detail

getConfiguration

public WMSConfigurationType getConfiguration()
returns the configuration used by the handler

Returns:
the configuration document

performGetMap

public OGCWebServiceResponse performGetMap()
                                    throws OGCWebServiceException
performs a GetMap request and returns the result encapsulated within a GetMapResult object.

The method throws an WebServiceException that only shall be thrown if an fatal error occurs that makes it impossible to return a result. If something went wrong performing the request (none fatal error) The exception shall be encapsulated within the response object to be returned to the client as requested (GetMap-Request EXCEPTION-Parameter).

Specified by:
performGetMap in interface GetMapHandler
Returns:
response to the GetMap response
Throws:
OGCWebServiceException

constructThemes

public java.util.List<java.util.concurrent.Callable<java.lang.Object>> constructThemes()
                                                                                throws OGCWebServiceException
Returns:
a list of callables that construct the maps to be painted
Throws:
OGCWebServiceException

getPredefinedStyle

public UserStyle getPredefinedStyle(java.lang.String styleName,
                                    java.lang.String layerName,
                                    Layer layer)
                             throws StyleNotDefinedException
Parameters:
styleName -
layerName -
layer -
Returns:
the style
Throws:
StyleNotDefinedException

renderMap

public GetMapResult renderMap(java.util.List<ExecutionFinishedEvent<java.lang.Object>> results)
                       throws OGCWebServiceException
renders the map from the DisplayElements

Parameters:
results -
Returns:
a result object suitable for further processing
Throws:
OGCWebServiceException

render

public GetMapResult render(Theme[] themes,
                           OGCWebServiceException exce)
                    throws InvalidSRSException
Parameters:
themes -
exce -
Returns:
a result object suitable for further processing elsewhere
Throws:
InvalidSRSException
InvalidSRSException

getRequest

protected GetMap getRequest()
Returns:
the request that is being handled

getRequestCRS

protected CoordinateSystem getRequestCRS()
Returns:
the requests coordinate system

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