public class GisViewerWMSUrlValidator extends Object
| Modifier and Type | Field and Description |
|---|---|
static String |
GEOSERVER |
static org.apache.log4j.Logger |
logger |
| Constructor and Description |
|---|
GisViewerWMSUrlValidator(String wmsRequest,
String layerName)
Instantiates a new gis viewer wms url validator.
|
| Modifier and Type | Method and Description |
|---|---|
String |
appendWmsServiceToBaseUrl(String url,
boolean isOwsServer)
Append wms service to base url.
|
String |
getLayerName()
Gets the layer name.
|
Map<String,String> |
getMapWmsNoStandardParams()
Gets the map wms no standard params.
|
List<String> |
getStylesAsList()
Gets the styles as list.
|
org.gcube.spatial.data.geoutility.wms.WmsUrlValidator |
getUrlValidator()
Gets the url validator.
|
static String |
getValueOfParameter(org.gcube.spatial.data.geoutility.bean.WmsParameters wmsParam,
String wmsUrlParameters)
Gets the value of parameter.
|
String |
getValueOfParsedWMSParameter(org.gcube.spatial.data.geoutility.bean.WmsParameters parameter)
Gets the value of parsed wms parameter.
|
WebMapServerHost |
getWebMapServerHost(String wmsRequest)
Gets the web map server host.
|
String |
getWmsNoStandardParameters()
Gets the wms no standard parameters.
|
String |
getWmsServiceHost()
Gets the wms service host.
|
static void |
main(String[] args)
The main method.
|
String |
parseWMSRequest(boolean returnEmptyParameter,
boolean fillEmptyParameterAsDefault)
Method: getFullWmsUrlRequest
Create a correct wms url request
Returns:
{String}.
|
static String |
setValueOfParameter(org.gcube.spatial.data.geoutility.bean.WmsParameters wmsParam,
String wmsUrlParameters,
String newValue,
boolean addIfNotExists)
Sets the value of parameter.
|
public static final String GEOSERVER
public static org.apache.log4j.Logger logger
public String appendWmsServiceToBaseUrl(String url, boolean isOwsServer)
url - the urlisOwsServer - the is ows serverpublic String parseWMSRequest(boolean returnEmptyParameter, boolean fillEmptyParameterAsDefault)
returnEmptyParameter - if true the wms url returned contains also wms parameter with empty value, none otherwise.
and mandatory wms parameters that does not found are filled with empty valuesfillEmptyParameterAsDefault - the fill empty parameter as defaultpublic WebMapServerHost getWebMapServerHost(String wmsRequest)
wmsRequest - the wms requestpublic String getWmsServiceHost()
public org.gcube.spatial.data.geoutility.wms.WmsUrlValidator getUrlValidator()
public String getWmsNoStandardParameters()
public String getValueOfParsedWMSParameter(org.gcube.spatial.data.geoutility.bean.WmsParameters parameter)
parameter - the parameterpublic static String getValueOfParameter(org.gcube.spatial.data.geoutility.bean.WmsParameters wmsParam, String wmsUrlParameters)
wmsParam - the wms paramwmsUrlParameters - the wms url parameterspublic static String setValueOfParameter(org.gcube.spatial.data.geoutility.bean.WmsParameters wmsParam, String wmsUrlParameters, String newValue, boolean addIfNotExists)
wmsParam - the wms paramwmsUrlParameters - the wms url parametersnewValue - the new valueaddIfNotExists - the add if not existspublic String getLayerName()
public List<String> getStylesAsList()
public Map<String,String> getMapWmsNoStandardParams()
public static void main(String[] args)
args - the argumentsCopyright © 2016. All Rights Reserved.