org.geotools.data.wms.gce
Class WMSFormatFactory

java.lang.Object
  extended byorg.geotools.data.wms.gce.WMSFormatFactory
All Implemented Interfaces:
Factory, GridFormatFactorySpi

public class WMSFormatFactory
extends java.lang.Object
implements GridFormatFactorySpi

Factory for the creation of a Format for use with WebMapServer.

The level of separation afforded a Factory implementation is not currently used, however we may need make use of this class to provide a specific WMSFormat for each version of the WMS Specification.

Author:
Richard Gould, Refractions Research

Constructor Summary
WMSFormatFactory(WMSCapabilities capabilities)
          WMSFormatFactory constructions based on parsed CapabilitiesDocument.
 
Method Summary
 org.opengis.coverage.grid.Format createFormat()
          Constructs a WMSFormat for use
 java.util.Map getImplementationHints()
          Returns the implementation hints.
 boolean isAvailable()
          Ensures Format preconditions are met
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

WMSFormatFactory

public WMSFormatFactory(WMSCapabilities capabilities)
WMSFormatFactory constructions based on parsed CapabilitiesDocument.

Currently only WMSFormat is supported - my impression is that a given WMS can understand several formats.

Parameters:
capabilities - Capabilities Document used to determine supported formats
Method Detail

createFormat

public org.opengis.coverage.grid.Format createFormat()
Constructs a WMSFormat for use

Specified by:
createFormat in interface GridFormatFactorySpi
Returns:
DOCUMENT ME!

isAvailable

public boolean isAvailable()
Ensures Format preconditions are met

Specified by:
isAvailable in interface GridFormatFactorySpi
Returns:
DOCUMENT ME!

getImplementationHints

public java.util.Map getImplementationHints()
Returns the implementation hints. The default implementation returns en empty map.

Specified by:
getImplementationHints in interface Factory
Returns:
The map of hints, or an empty map if none.


Copyright © GeoTools. All Rights Reserved.