Class GSLayerEncoder21
- java.lang.Object
-
- it.geosolutions.geoserver.rest.encoder.utils.XmlElement
-
- it.geosolutions.geoserver.rest.encoder.utils.PropertyXMLEncoder
-
- it.geosolutions.geoserver.rest.encoder.GSLayerEncoder
-
- it.geosolutions.geoserver.rest.encoder.GSLayerEncoder21
-
public class GSLayerEncoder21 extends GSLayerEncoder
Layer encoder for Geoserver = 2.1- Since:
- gs-2.1.x
- Version:
- $Id: $
- Author:
- Emmanuel Blondel - emmanuel.blondel1@gmail.com The layer encoder is enabled by default
-
-
Field Summary
Fields Modifier and Type Field Description java.util.Map<java.lang.String,java.lang.String>authorityURLListjava.util.Map<java.lang.String,java.util.List<java.lang.String>>identifierListstatic java.lang.StringMETADATAConstantMETADATA="metadata"-
Fields inherited from class it.geosolutions.geoserver.rest.encoder.GSLayerEncoder
AUTHORITY_URLS, DEFAULT_STYLE, IDENTIFIERS, STYLES
-
-
Constructor Summary
Constructors Constructor Description GSLayerEncoder21()Constructor for GSLayerEncoder21.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected voidaddAdvertised()advertise the layervoidaddAuthorityURL(GSAuthorityURLInfoEncoder authorityURLInfo)Add an authorityURLInfo to the GeoServer layervoidaddIdentifier(GSIdentifierInfoEncoder identifierInfo)Add an identifierInfo to the GeoServer layerprotected voidaddMetadata(java.lang.String key, XmlElement dimensionInfo)addMetadatabooleandelAuthorityURL(java.lang.String authorityURL)Deletes a AuthorityURLInfo from the list using the authorityURL (AuthorityURLInfo href)booleandelIdentifier(java.lang.String authority)Deletes a IdentifierInfo from the list using the authority name (IdentifierInfo authority)voidsetAdvertised(boolean advertised)setAdvertised-
Methods inherited from class it.geosolutions.geoserver.rest.encoder.GSLayerEncoder
addDefaultStyle, addDefaultStyle, addEnabled, addQueryable, addStyle, addWmsPath, delStyle, setDefaultStyle, setDefaultStyle, setEnabled, setQueryable, setWmsPath
-
Methods inherited from class it.geosolutions.geoserver.rest.encoder.utils.PropertyXMLEncoder
add, get, get, set
-
Methods inherited from class it.geosolutions.geoserver.rest.encoder.utils.XmlElement
add, addContent, getRoot, isEmpty, remove, set, setRoot, setRoot, toString
-
-
-
-
Field Detail
-
METADATA
public static final java.lang.String METADATA
ConstantMETADATA="metadata"- See Also:
- Constant Field Values
-
authorityURLList
public java.util.Map<java.lang.String,java.lang.String> authorityURLList
-
identifierList
public java.util.Map<java.lang.String,java.util.List<java.lang.String>> identifierList
-
-
Method Detail
-
addMetadata
protected void addMetadata(java.lang.String key, XmlElement dimensionInfo)addMetadata
- Parameters:
key- aStringobject.dimensionInfo- aXmlElementobject.
-
addAdvertised
protected void addAdvertised()
advertise the layer
-
setAdvertised
public void setAdvertised(boolean advertised)
setAdvertised
- Overrides:
setAdvertisedin classGSLayerEncoder- Parameters:
advertised- true if the layer should be advertised
-
addAuthorityURL
public void addAuthorityURL(GSAuthorityURLInfoEncoder authorityURLInfo)
Add an authorityURLInfo to the GeoServer layer Add an authorityURLInfo to the GeoServer layer- Overrides:
addAuthorityURLin classGSLayerEncoder- Parameters:
authorityURLInfo- aGSAuthorityURLInfoEncoderobject.
-
delAuthorityURL
public boolean delAuthorityURL(java.lang.String authorityURL)
Deletes a AuthorityURLInfo from the list using the authorityURL (AuthorityURLInfo href) Deletes a AuthorityURLInfo from the list using the authorityURL (AuthorityURLInfo href)- Overrides:
delAuthorityURLin classGSLayerEncoder- Parameters:
authorityURL- aStringobject.- Returns:
- true if something is removed, false otherwise
-
addIdentifier
public void addIdentifier(GSIdentifierInfoEncoder identifierInfo)
Add an identifierInfo to the GeoServer layer Add an identifierInfo to the GeoServer layer- Overrides:
addIdentifierin classGSLayerEncoder- Parameters:
identifierInfo- aGSIdentifierInfoEncoderobject.
-
delIdentifier
public boolean delIdentifier(java.lang.String authority)
Deletes a IdentifierInfo from the list using the authority name (IdentifierInfo authority) Deletes a IdentifierInfo from the list using the authority name (IdentifierInfo authority)- Overrides:
delIdentifierin classGSLayerEncoder- Parameters:
authority- aStringobject.- Returns:
- true if something is removed, false otherwise
-
-