Class RESTWms
- java.lang.Object
-
- it.geosolutions.geoserver.rest.decoder.RESTResource
-
- it.geosolutions.geoserver.rest.decoder.RESTWms
-
public class RESTWms extends RESTResource
Parse WMSs returned as XML REST objects.This is the XML REST representation:
<wmsLayer> <name>comunilazio</name> <nativeName>lait:comunilazio</nativeName> <namespace> <name>arit</name> <atom:link xmlns:atom="http://www.w3.org/2005/Atom" rel="alternate" href="http://172.27.30.25:8080/geoserver/rest/namespaces/arit.xml" type="application/xml"/> </namespace> <title>comunilazio</title> <description/> <keywords> <string>features</string> <string>comunilazio</string> </keywords> <nativeCRS> GEOGCS["WGS 84", DATUM["World Geodetic System 1984", SPHEROID["WGS 84", 6378137.0, 298.257223563, AUTHORITY["EPSG","7030"]], AUTHORITY["EPSG","6326"]], PRIMEM["Greenwich", 0.0, AUTHORITY["EPSG","8901"]], UNIT["degree", 0.017453292519943295], AXIS["Geodetic longitude", EAST], AXIS["Geodetic latitude", NORTH], AUTHORITY["EPSG","4326"]] </nativeCRS> <srs>EPSG:4326</srs> <nativeBoundingBox> <minx>11.4482128</minx> <maxx>14.0288013</maxx> <miny>40.7848334</miny> <maxy>42.8396541</maxy> <crs>EPSG:4326</crs> </nativeBoundingBox> <latLonBoundingBox> <minx>11.4482128</minx> <maxx>14.0288013</maxx> <miny>40.7848334</miny> <maxy>42.8396541</maxy> <crs> GEOGCS["WGS84(DD)", DATUM["WGS84", SPHEROID["WGS84", 6378137.0, 298.257223563]], PRIMEM["Greenwich", 0.0], UNIT["degree", 0.017453292519943295], AXIS["Geodetic longitude", EAST], AXIS["Geodetic latitude", NORTH]] </crs> </latLonBoundingBox> <projectionPolicy>FORCE_DECLARED</projectionPolicy> <enabled>true</enabled> <metadata> <entry key="cachingEnabled">false</entry> </metadata> <store class="wmsStore"> <name>regione</name> <atom:link xmlns:atom="http://www.w3.org/2005/Atom" rel="alternate" href="http://172.27.30.25:8080/geoserver/rest/workspaces/arit/wmsstores/regione.xml" type="application/xml"/> </store> </wmsLayer>- Version:
- $Id: $
- Author:
- cip
-
-
Field Summary
-
Fields inherited from class it.geosolutions.geoserver.rest.decoder.RESTResource
rootElem
-
-
Constructor Summary
Constructors Constructor Description RESTWms(RESTResource resource)Constructor for RESTWms.RESTWms(org.jdom.Element resource)Constructor for RESTWms.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static RESTWmsbuild(java.lang.String response)java.util.List<RESTDimensionInfo>getDimensionInfo()getDimensionInfoRESTMetadataListgetMetadataList()getMetadataListjava.lang.StringgetNativeCRS()getNativeCRSjava.util.Map<java.lang.String,java.lang.String>getParametersList()Retrieves the list of parameters for this wms.java.lang.StringgetSRS()getSRSjava.lang.StringtoString()-
Methods inherited from class it.geosolutions.geoserver.rest.decoder.RESTResource
getAbstract, getAttributeList, getCRS, getEncodedAttributeList, getEncodedDimensionsInfoList, getEncodedMetadataLinkInfoList, getKeywords, getLatLonBoundingBox, getMaxX, getMaxY, getMinX, getMinY, getName, getNameSpace, getNativeBoundingBox, getNativeName, getStoreName, getStoreType, getStoreUrl, getTitle
-
-
-
-
Constructor Detail
-
RESTWms
public RESTWms(org.jdom.Element resource)
Constructor for RESTWms.
- Parameters:
resource- aElementobject.
-
RESTWms
public RESTWms(RESTResource resource)
Constructor for RESTWms.
- Parameters:
resource- aRESTResourceobject.
-
-
Method Detail
-
build
public static RESTWms build(java.lang.String response)
-
getNativeCRS
public java.lang.String getNativeCRS()
getNativeCRS
- Overrides:
getNativeCRSin classRESTResource- Returns:
- a
Stringobject.
-
getSRS
public java.lang.String getSRS()
getSRS
- Returns:
- a
Stringobject.
-
getMetadataList
public RESTMetadataList getMetadataList()
getMetadataList
- Returns:
- a
RESTMetadataListobject.
-
getDimensionInfo
public java.util.List<RESTDimensionInfo> getDimensionInfo()
getDimensionInfo
- Returns:
- a
Listobject.
-
getParametersList
public java.util.Map<java.lang.String,java.lang.String> getParametersList()
Retrieves the list of parameters for this wms.- Returns:
- a
Mapwhere the key is the name for the parameter and the value is the value for the parameter.
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
-