Class 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>
      
     
    Version:
    $Id: $
    Author:
    eblondel
    • Constructor Detail

      • RESTLayer21

        public RESTLayer21​(org.jdom.Element layerElem)

        Constructor for RESTLayer21.

        Parameters:
        layerElem - a Element object.
    • Method Detail

      • build

        public static RESTLayer21 build​(java.lang.String response)
      • getAdvertised

        public boolean getAdvertised()
        Decodes the advertised property from the Geoserver Layer
        Overrides:
        getAdvertised in class RESTLayer
        Returns:
        a boolean.