Class RESTLayer21
- java.lang.Object
-
- it.geosolutions.geoserver.rest.decoder.RESTLayer
-
- it.geosolutions.geoserver.rest.decoder.RESTLayer21
-
public class RESTLayer21 extends RESTLayer
Parse Layers returned as XML REST objects. Applicable to GS 2.1 for decoding: - AuthorityURLs - Identifiers - advertised property valueThis is the XML REST representation:
<layer> <name>tasmania_cities</name> <path>/</path> <type>VECTOR</type> <defaultStyle> <name>capitals</name> <atom:link xmlns:atom="http://www.w3.org/2005/Atom" rel="alternate" href="http://localhost:8080/geoserver/rest/styles/capitals.xml" type="application/xml"/> </defaultStyle> <resource class="featureType"> <name>tasmania_cities</name> <atom:link xmlns:atom="http://www.w3.org/2005/Atom" rel="alternate" href="http://localhost:8080/geoserver/rest/workspaces/topp/datastores/taz_shapes/featuretypes/tasmania_cities.xml" type="application/xml"/> </resource> <enabled>true</enabled> <queryable>true</queryable> <advertised>true</advertised> <attribution> <logoWidth>0</logoWidth> <logoHeight>0</logoHeight> </attribution> <metadata> <entry key="identifiers"> [{"authority":"authority1","identifier":"identifier1"},] </entry> <entry key="authorityURLs"> [{"name":"authority1","href":"http://www.authority1.org"},] </entry> <entry key="advertised">true</entry> </metadata> </layer>- Version:
- $Id: $
- Author:
- eblondel
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class it.geosolutions.geoserver.rest.decoder.RESTLayer
RESTLayer.Type
-
-
Constructor Summary
Constructors Constructor Description RESTLayer21(org.jdom.Element layerElem)Constructor for RESTLayer21.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static RESTLayer21build(java.lang.String response)booleangetAdvertised()Decodes the advertised property from the Geoserver Layerjava.util.List<GSAuthorityURLInfoEncoder>getEncodedAuthorityURLInfoList()Decodes the list of AuthorityURLInfo from the GeoServer Layerjava.util.List<GSIdentifierInfoEncoder>getEncodedIdentifierInfoList()Decodes the list of IdentifierInfo from the GeoServer Layer-
Methods inherited from class it.geosolutions.geoserver.rest.decoder.RESTLayer
getAbstract, getDefaultStyle, getDefaultStyleWorkspace, getEnabled, getName, getNameSpace, getQueryable, getResourceUrl, getStyles, getTitle, getType, getTypeString
-
-
-
-
Method Detail
-
build
public static RESTLayer21 build(java.lang.String response)
-
getAdvertised
public boolean getAdvertised()
Decodes the advertised property from the Geoserver Layer- Overrides:
getAdvertisedin classRESTLayer- Returns:
- a boolean.
-
getEncodedAuthorityURLInfoList
public java.util.List<GSAuthorityURLInfoEncoder> getEncodedAuthorityURLInfoList()
Decodes the list of AuthorityURLInfo from the GeoServer Layer- Overrides:
getEncodedAuthorityURLInfoListin classRESTLayer- Returns:
- the list of GSAuthorityURLInfoEncoder
-
getEncodedIdentifierInfoList
public java.util.List<GSIdentifierInfoEncoder> getEncodedIdentifierInfoList()
Decodes the list of IdentifierInfo from the GeoServer Layer- Overrides:
getEncodedIdentifierInfoListin classRESTLayer- Returns:
- the list of IdentifierInfoEncoder
-
-