Class WmsGetStyles
- java.lang.Object
-
- org.gcube.spatial.data.geoutility.wms.WmsGetStyles
-
public class WmsGetStyles extends Object
The Class WmsGetStyles.- Author:
- Francesco Mangiacrapa francesco.mangiacrapa@isti.cnr.it Jan 22, 2016
-
-
Constructor Summary
Constructors Constructor Description WmsGetStyles()Instantiates a new wms get styles.WmsGetStyles(int connectionTimeout)Instantiates a new wms get styles.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description WmsServiceBaseUrifoundWmsServiceBaseUri(String uri)Gets the geoserver base uri.intgetResponseCode()Gets the response code.List<String>getStylesFromWms(String urlConn, String layerName)Gets the styles from wms.static voidmain(String[] args)The main method.StringtoString()
-
-
-
Field Detail
-
logger
public static org.apache.log4j.Logger logger
-
context
protected NamespaceContextMap context
-
-
Constructor Detail
-
WmsGetStyles
public WmsGetStyles()
Instantiates a new wms get styles.
-
WmsGetStyles
public WmsGetStyles(int connectionTimeout)
Instantiates a new wms get styles.- Parameters:
connectionTimeout- the connection timeout sets a specified timeout value, in milliseconds, to be used when opening WMS GetStyles request.
-
-
Method Detail
-
getStylesFromWms
public List<String> getStylesFromWms(String urlConn, String layerName)
Gets the styles from wms.- Parameters:
urlConn- the url connlayerName- the layer name- Returns:
- the styles from wms
-
foundWmsServiceBaseUri
public WmsServiceBaseUri foundWmsServiceBaseUri(String uri)
Gets the geoserver base uri.- Parameters:
uri- the uri- Returns:
- the input uri without the parameters, (the uri substring from start to index of '?' char (if exists)) if geoserver base url not found, geoserver url otherwise
-
getResponseCode
public int getResponseCode()
Gets the response code.- Returns:
- the responseCode
-
main
public static void main(String[] args)
The main method.- Parameters:
args- the arguments
-
-