it.geosolutions.geoserver.rest.decoder
Class RESTLayer

java.lang.Object
  extended by it.geosolutions.geoserver.rest.decoder.RESTLayer
Direct Known Subclasses:
RESTLayer21

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>
    <queryable>true</queryable>
    <advertised>true</advertised>
    <attribution>
        <logoWidth>0</logoWidth>
        <logoHeight>0</logoHeight>
    </attribution>
    <authorityURLs>
                <AuthorityURL>
                        <name>authority1</name>
                        <href>http://www.authority1.org</href>
                </AuthorityURL>
        </authorityURLs>
        <identifiers>
                <Identifier>
                        <authority>authority1</authority>
                        <identifier>identifier1</identifier>
                </Identifier>
        </identifiers>
</layer>
 

Author:
etj, eblondel

Nested Class Summary
static class RESTLayer.Type
           
 
Field Summary
protected  org.jdom.Element layerElem
           
 
Constructor Summary
RESTLayer(org.jdom.Element layerElem)
           
 
Method Summary
static RESTLayer build(String response)
           
 String getAbstract()
           
 boolean getAdvertised()
           
 String getDefaultStyle()
           
 String getDefaultStyleWorkspace()
           
 boolean getEnabled()
           
 List<GSAuthorityURLInfoEncoder> getEncodedAuthorityURLInfoList()
          Decodes the list of AuthorityURLInfo from the GeoServer Layer
 List<GSIdentifierInfoEncoder> getEncodedIdentifierInfoList()
          Decodes the list of IdentifierInfo from the GeoServer Layer
 String getName()
           
 String getNameSpace()
           
 boolean getQueryable()
           
 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
 

Field Detail

layerElem

protected final org.jdom.Element layerElem
Constructor Detail

RESTLayer

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

build

public static RESTLayer build(String response)

getEnabled

public boolean getEnabled()

getQueryable

public boolean getQueryable()

getAdvertised

public boolean getAdvertised()

getName

public String getName()

getTypeString

public String getTypeString()

getType

public RESTLayer.Type getType()

getDefaultStyle

public String getDefaultStyle()

getDefaultStyleWorkspace

public String getDefaultStyleWorkspace()

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>
 


getEncodedAuthorityURLInfoList

public List<GSAuthorityURLInfoEncoder> getEncodedAuthorityURLInfoList()
Decodes the list of AuthorityURLInfo from the GeoServer Layer

Returns:
the list of GSAuthorityURLInfoEncoder

getEncodedIdentifierInfoList

public List<GSIdentifierInfoEncoder> getEncodedIdentifierInfoList()
Decodes the list of IdentifierInfo from the GeoServer Layer

Returns:
the list of IdentifierInfoEncoder


Copyright © 2007-2014 GeoSolutions. All Rights Reserved.