it.geosolutions.geoserver.rest.decoder
Class RESTLayer

java.lang.Object
  extended by 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

Nested Class Summary
static class RESTLayer.Type
           
 
Constructor Summary
RESTLayer(org.jdom.Element layerElem)
           
 
Method Summary
static RESTLayer build(String response)
           
 String getAbstract()
           
 String getDefaultStyle()
           
 String getName()
           
 String getNameSpace()
           
 String getResourceUrl()
          Get the URL to retrieve the featuretype.
 String getTitle()
           
 RESTLayer.Type getType()
           
 String getTypeString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RESTLayer

public RESTLayer(org.jdom.Element layerElem)
Method Detail

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.