public class WmsUrlValidator extends Object
Constructor and Description |
---|
WmsUrlValidator(String wmsRequest)
Instantiates a new wms url validator.
|
Modifier and Type | Method and Description |
---|---|
String |
getBaseWmsServiceUrl() |
Map<String,String> |
getMapWmsNotStandardParams()
Gets the map wms not standard params.
|
List<String> |
getStylesAsList()
Gets the styles as list.
|
static String |
getValueOfParameter(WmsParameters wmsParam,
String wmsRequestParamaters)
Gets the value of parameter.
|
String |
getValueOfParsedWMSParameter(WmsParameters parameter)
Gets the value of parsed wms parameter.
|
String |
getWmsNotStandardParameters()
Gets the wms not standard parameters.
|
String |
getWmsRequest() |
static void |
main(String[] args)
The main method.
|
String |
parseWmsRequest(boolean returnEmptyParameter,
boolean fillEmptyParameterAsDefaultValue)
Parses the wms request.
|
static String |
setValueOfParameter(WmsParameters wmsParam,
String wmsRequestParameters,
String newValue,
boolean addIfNotExists)
Sets the value of parameter.
|
static String |
validateValueOfParameter(WmsParameters wmsParam,
String valueOfParameter,
boolean fillEmptyParameterAsDefaultValue)
Validate value of parameter.
|
public WmsUrlValidator(String wmsRequest)
wmsRequest
- the wms requestpublic String parseWmsRequest(boolean returnEmptyParameter, boolean fillEmptyParameterAsDefaultValue) throws Exception
returnEmptyParameter
- the return empty parameterfillEmptyParameterAsDefaultValue
- the fill empty parameter as defaultException
public String getWmsRequest()
public String getBaseWmsServiceUrl()
public String getWmsNotStandardParameters()
public String getValueOfParsedWMSParameter(WmsParameters parameter)
parameter
- the parameterpublic static String validateValueOfParameter(WmsParameters wmsParam, String valueOfParameter, boolean fillEmptyParameterAsDefaultValue)
wmsParam
- the wms paramvalueOfParameter
- the value of parameterfillEmptyParameterAsDefaultValue
- the fill empty parameter as default valuepublic static String getValueOfParameter(WmsParameters wmsParam, String wmsRequestParamaters)
wmsParam
- the wms paramwmsRequestParamaters
- the url wms parameterspublic static String setValueOfParameter(WmsParameters wmsParam, String wmsRequestParameters, String newValue, boolean addIfNotExists)
wmsParam
- the wms paramwmsRequestParameters
- the wms url parametersnewValue
- the new valueaddIfNotExists
- add the parameter if not existspublic List<String> getStylesAsList()
public Map<String,String> getMapWmsNotStandardParams()
public static void main(String[] args)
args
- the argumentsCopyright © 2016. All Rights Reserved.