public final class OldApiConfig extends java.lang.Object implements ConfigurationObject
Configuration options for how requests to the old API are handled.
Example
oldApi: !oldApi
layersFirstIsBaseLayer: false
wmsReverseLayers: true
templates:
..| Constructor and Description |
|---|
OldApiConfig() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
isLayersFirstIsBaseLayer()
If true then the first layer in the layers array in the JSON request is the bottom layer of the map.
|
boolean |
isWmsReverseLayers()
If true then the layer order coming from the old API client will be reversed for the layers within a
WMS request.
|
void |
setLayersFirstIsBaseLayer(boolean layersFirstIsBaseLayer)
If true then the first layer in the layers array in the JSON request is the bottom layer of the map.
|
void |
setWmsReverseLayers(boolean wmsReverseLayers)
Set if the layer order coming from the old API client will be reversed for the layers within a WMS
request.
|
void |
validate(java.util.List<java.lang.Throwable> validationErrors,
Configuration configuration)
validate that the configuration was correct.
|
public boolean isLayersFirstIsBaseLayer()
public void setLayersFirstIsBaseLayer(boolean layersFirstIsBaseLayer)
layersFirstIsBaseLayer - If true then the first layer in the layers array in the JSON
request is the bottom layer of the map.public void validate(java.util.List<java.lang.Throwable> validationErrors,
Configuration configuration)
ConfigurationObjectvalidate in interface ConfigurationObjectvalidationErrors - a list to add any detected errors to.configuration - the containing configurationpublic boolean isWmsReverseLayers()
public void setWmsReverseLayers(boolean wmsReverseLayers)
wmsReverseLayers - if true then the layer order will be reversed