Class WmsGetStyles


  • public class WmsGetStyles
    extends Object
    The Class WmsGetStyles.
    Author:
    Francesco Mangiacrapa francesco.mangiacrapa@isti.cnr.it Jan 22, 2016
    • 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 conn
        layerName - 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