it.geosolutions.geoserver.rest.decoder
Class RESTLayer
java.lang.Object
it.geosolutions.geoserver.rest.decoder.RESTLayer
public class RESTLayer
- extends Object
Parse Layers returned as XML REST objects.
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>
<attribution>
<logoWidth>0</logoWidth>
<logoHeight>0</logoHeight>
</attribution>
</layer>
- Author:
- etj
Constructor Summary |
RESTLayer(org.jdom.Element layerElem)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
RESTLayer
public RESTLayer(org.jdom.Element layerElem)
build
public static RESTLayer build(String response)
getName
public String getName()
getTypeString
public String getTypeString()
getType
public RESTLayer.Type getType()
getDefaultStyle
public String getDefaultStyle()
getTitle
public String getTitle()
getAbstract
public String getAbstract()
getNameSpace
public String getNameSpace()
getResourceUrl
public String getResourceUrl()
- Get the URL to retrieve the featuretype.
<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>
Copyright © 2007-2013 GeoSolutions. All Rights Reserved.