Class RESTLayer
- java.lang.Object
-
- it.geosolutions.geoserver.rest.decoder.RESTLayer
-
- Direct Known Subclasses:
RESTLayer21
public class RESTLayer extends java.lang.ObjectParse 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> <styles class="linked-hash-set"> <style> <name>green</name> <atom:link xmlns:atom="http://www.w3.org/2005/Atom" rel="alternate" href="http://localhost:8080/geoserver/rest/styles/green.xml" type="application/xml"/> </style> </styles> <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>- Version:
- $Id: $
- Author:
- etj, eblondel
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classRESTLayer.Type
-
Field Summary
Fields Modifier and Type Field Description protected org.jdom.ElementlayerElem
-
Constructor Summary
Constructors Constructor Description RESTLayer(org.jdom.Element layerElem)Constructor for RESTLayer.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static RESTLayerbuild(java.lang.String response)buildjava.lang.StringgetAbstract()getAbstractbooleangetAdvertised()getAdvertisedjava.lang.StringgetDefaultStyle()getDefaultStylejava.lang.StringgetDefaultStyleWorkspace()getDefaultStyleWorkspacebooleangetEnabled()getEnabledjava.util.List<GSAuthorityURLInfoEncoder>getEncodedAuthorityURLInfoList()Decodes the list of AuthorityURLInfo from the GeoServer Layerjava.util.List<GSIdentifierInfoEncoder>getEncodedIdentifierInfoList()Decodes the list of IdentifierInfo from the GeoServer Layerjava.lang.StringgetName()getNamejava.lang.StringgetNameSpace()getNameSpacebooleangetQueryable()getQueryablejava.lang.StringgetResourceUrl()Get the URL to retrieve the featuretype.RESTStyleListgetStyles()getStylesjava.lang.StringgetTitle()getTitleRESTLayer.TypegetType()getTypejava.lang.StringgetTypeString()getTypeString
-
-
-
Method Detail
-
build
public static RESTLayer build(java.lang.String response)
build
- Parameters:
response- aStringobject.- Returns:
- a
RESTLayerobject.
-
getEnabled
public boolean getEnabled()
getEnabled
- Returns:
- a boolean.
-
getQueryable
public boolean getQueryable()
getQueryable
- Returns:
- a boolean.
-
getAdvertised
public boolean getAdvertised()
getAdvertised
- Returns:
- a boolean.
-
getName
public java.lang.String getName()
getName
- Returns:
- a
Stringobject.
-
getTypeString
public java.lang.String getTypeString()
getTypeString
- Returns:
- a
Stringobject.
-
getType
public RESTLayer.Type getType()
getType
- Returns:
- a
RESTLayer.Typeobject.
-
getDefaultStyle
public java.lang.String getDefaultStyle()
getDefaultStyle
- Returns:
- a
Stringobject.
-
getStyles
public RESTStyleList getStyles()
getStyles
- Returns:
- a
RESTStyleListobject.
-
getDefaultStyleWorkspace
public java.lang.String getDefaultStyleWorkspace()
getDefaultStyleWorkspace
- Returns:
- a
Stringobject.
-
getTitle
public java.lang.String getTitle()
getTitle
- Returns:
- a
Stringobject.
-
getAbstract
public java.lang.String getAbstract()
getAbstract
- Returns:
- a
Stringobject.
-
getNameSpace
public java.lang.String getNameSpace()
getNameSpace
- Returns:
- a
Stringobject.
-
getResourceUrl
public java.lang.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>- Returns:
- a
Stringobject.
-
getEncodedAuthorityURLInfoList
public java.util.List<GSAuthorityURLInfoEncoder> getEncodedAuthorityURLInfoList()
Decodes the list of AuthorityURLInfo from the GeoServer Layer- Returns:
- the list of GSAuthorityURLInfoEncoder
-
getEncodedIdentifierInfoList
public java.util.List<GSIdentifierInfoEncoder> getEncodedIdentifierInfoList()
Decodes the list of IdentifierInfo from the GeoServer Layer- Returns:
- the list of IdentifierInfoEncoder
-
-