it.geosolutions.geoserver.rest.encoder
Class GSLayerEncoder21

java.lang.Object
  extended by it.geosolutions.geoserver.rest.encoder.utils.XmlElement
      extended by it.geosolutions.geoserver.rest.encoder.utils.PropertyXMLEncoder
          extended by it.geosolutions.geoserver.rest.encoder.GSLayerEncoder
              extended by it.geosolutions.geoserver.rest.encoder.GSLayerEncoder21

public class GSLayerEncoder21
extends GSLayerEncoder

Layer encoder for Geoserver = 2.1

Since:
gs-2.1.x
Author:
Emmanuel Blondel - emmanuel.blondel1@gmail.com The layer encoder is enabled by default

Field Summary
 Map<String,String> authorityURLList
           
 Map<String,List<String>> identifierList
           
static String METADATA
           
 
Fields inherited from class it.geosolutions.geoserver.rest.encoder.GSLayerEncoder
AUTHORITY_URLS, IDENTIFIERS, STYLES
 
Constructor Summary
GSLayerEncoder21()
           
 
Method Summary
protected  void addAdvertised()
          advertise the layer
 void addAuthorityURL(GSAuthorityURLInfoEncoder authorityURLInfo)
          Add an authorityURLInfo to the GeoServer layer
 void addIdentifier(GSIdentifierInfoEncoder identifierInfo)
          Add an identifierInfo to the GeoServer layer
protected  void addMetadata(String key, XmlElement dimensionInfo)
           
 boolean delAuthorityURL(String authorityURL)
          Deletes a AuthorityURLInfo from the list using the authorityURL (AuthorityURLInfo href)
 boolean delIdentifier(String authority)
          Deletes a IdentifierInfo from the list using the authority name (IdentifierInfo authority)
 void setAdvertised(boolean advertised)
           
 
Methods inherited from class it.geosolutions.geoserver.rest.encoder.GSLayerEncoder
addDefaultStyle, addEnabled, addQueryable, addStyle, addWmsPath, delStyle, 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
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

METADATA

public static final String METADATA
See Also:
Constant Field Values

authorityURLList

public Map<String,String> authorityURLList

identifierList

public Map<String,List<String>> identifierList
Constructor Detail

GSLayerEncoder21

public GSLayerEncoder21()
Method Detail

addMetadata

protected void addMetadata(String key,
                           XmlElement dimensionInfo)
Parameters:
key -
dimensionInfo -

addAdvertised

protected void addAdvertised()
advertise the layer


setAdvertised

public void setAdvertised(boolean advertised)
Overrides:
setAdvertised in class GSLayerEncoder
Parameters:
advertised - true if the layer should be advertised

addAuthorityURL

public void addAuthorityURL(GSAuthorityURLInfoEncoder authorityURLInfo)
Add an authorityURLInfo to the GeoServer layer

Overrides:
addAuthorityURL in class GSLayerEncoder
Parameters:
authorityURLInfo -

delAuthorityURL

public boolean delAuthorityURL(String authorityURL)
Deletes a AuthorityURLInfo from the list using the authorityURL (AuthorityURLInfo href)

Overrides:
delAuthorityURL in class GSLayerEncoder
Parameters:
authorityURL -
Returns:
true if something is removed, false otherwise

addIdentifier

public void addIdentifier(GSIdentifierInfoEncoder identifierInfo)
Add an identifierInfo to the GeoServer layer

Overrides:
addIdentifier in class GSLayerEncoder
Parameters:
identifierInfo -

delIdentifier

public boolean delIdentifier(String authority)
Deletes a IdentifierInfo from the list using the authority name (IdentifierInfo authority)

Overrides:
delIdentifier in class GSLayerEncoder
Parameters:
authority -
Returns:
true if something is removed, false otherwise


Copyright © 2007-2014 GeoSolutions. All Rights Reserved.