public class WmsUrlValidator extends Object
Modifier and Type | Field and Description |
---|---|
static org.apache.log4j.Logger |
logger |
Constructor and Description |
---|
WmsUrlValidator(String wmsRequest)
Instantiates a new wms url validator.
|
Modifier and Type | Method and Description |
---|---|
String |
getBaseWmsServiceUrl()
Gets the base wms service url.
|
Map<String,String> |
getMapWmsNoStandardParams()
Gets the map wms no standard params.
|
HashMap<String,String> |
getMapWmsParameters()
Gets the map wms parameters.
|
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 |
getWmsNoStandardParameters()
Gets the wms no standard parameters.
|
String |
getWmsRequest()
Gets the wms request.
|
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.
|
String |
toString() |
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
- the exceptionpublic HashMap<String,String> getMapWmsParameters()
public String getWmsRequest()
public String getBaseWmsServiceUrl()
public String getWmsNoStandardParameters()
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> getMapWmsNoStandardParams()
public static void main(String[] args)
args
- the argumentsCopyright © 2016. All Rights Reserved.