it.geosolutions.geoserver.rest.decoder
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 value
This 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>
- Author:
- eblondel
|
Constructor Summary |
RESTLayer21(org.jdom.Element layerElem)
|
| Methods inherited from class it.geosolutions.geoserver.rest.decoder.RESTLayer |
getAbstract, getDefaultStyle, getDefaultStyleWorkspace, getEnabled, getName, getNameSpace, getQueryable, getResourceUrl, getTitle, getType, getTypeString |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
RESTLayer21
public RESTLayer21(org.jdom.Element layerElem)
build
public static RESTLayer21 build(String response)
getAdvertised
public boolean getAdvertised()
- Decodes the advertised property from the Geoserver Layer
- Overrides:
getAdvertised in class RESTLayer
getEncodedAuthorityURLInfoList
public List<GSAuthorityURLInfoEncoder> getEncodedAuthorityURLInfoList()
- Decodes the list of AuthorityURLInfo from the GeoServer Layer
- Overrides:
getEncodedAuthorityURLInfoList in class RESTLayer
- Returns:
- the list of GSAuthorityURLInfoEncoder
getEncodedIdentifierInfoList
public List<GSIdentifierInfoEncoder> getEncodedIdentifierInfoList()
- Decodes the list of IdentifierInfo from the GeoServer Layer
- Overrides:
getEncodedIdentifierInfoList in class RESTLayer
- Returns:
- the list of IdentifierInfoEncoder
Copyright © 2007-2014 GeoSolutions. All Rights Reserved.