Package org.mapfish.print.map.image.wms
Class WmsLayerFactoryPlugin
java.lang.Object
org.mapfish.print.map.geotools.AbstractGridCoverageLayerPlugin
org.mapfish.print.map.image.wms.WmsLayerFactoryPlugin
- All Implemented Interfaces:
MapLayerFactoryPlugin<WmsLayerParam>
public final class WmsLayerFactoryPlugin
extends AbstractGridCoverageLayerPlugin
implements MapLayerFactoryPlugin<WmsLayerParam>
Renders WMS layers as single image.
Type: wms
[[examples=printwms_tyger_ny_EPSG_3857,printwms_UsaPopulation_EPSG_4326]]
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionCreate an instance of a param object.Return a set of all the values the json 'type' property should have for this plugin to apply typenames MUST be lowercase.parse
(Template template, WmsLayerParam layerData) Inspect the json data and return Optional<MapLayer> or Optional.absent().Methods inherited from class org.mapfish.print.map.geotools.AbstractGridCoverageLayerPlugin
createStyleSupplier
-
Constructor Details
-
WmsLayerFactoryPlugin
public WmsLayerFactoryPlugin()
-
-
Method Details
-
getTypeNames
Description copied from interface:MapLayerFactoryPlugin
Return a set of all the values the json 'type' property should have for this plugin to apply typenames MUST be lowercase.- Specified by:
getTypeNames
in interfaceMapLayerFactoryPlugin<WmsLayerParam>
-
createParameter
Description copied from interface:MapLayerFactoryPlugin
Create an instance of a param object. Each instance must be new and unique. Instances must NOT be shared.The object will be populated from the json. Each public field will be populated by looking up the value in the json.
The same mechanism used for reading from the JSON into the param object is also used for parsing the JSON into
Attribute
value objects. SeeReflectiveAttribute.createValue(org.mapfish.print.config.Template)
()} for details on how the parsing mechanism works.- Specified by:
createParameter
in interfaceMapLayerFactoryPlugin<WmsLayerParam>
-
parse
Description copied from interface:MapLayerFactoryPlugin
Inspect the json data and return Optional<MapLayer> or Optional.absent().- Specified by:
parse
in interfaceMapLayerFactoryPlugin<WmsLayerParam>
- Parameters:
template
- the configuration related to the current request.layerData
- an object populated from the json for the layer
-