public abstract class AbstractWMXLayerParams extends AbstractTiledLayerParams
| Modifier and Type | Field and Description |
|---|---|
PObject |
customParams
Custom query parameters to use when making http requests.
|
PJsonObject |
mergeableParams
Custom query parameters that can be merged if multiple layers are merged together into a single
request.
|
rasterStylefailOnError, name, opacity| Constructor and Description |
|---|
AbstractWMXLayerParams() |
| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
createCommonUrl()
Create a URL that is common to all image requests for this layer.
|
com.google.common.collect.Multimap<java.lang.String,java.lang.String> |
getCustomParams()
Read the
customParams into a Multimap. |
com.google.common.collect.Multimap<java.lang.String,java.lang.String> |
getMergeableParams()
Read the
mergeableParams into a Multimap. |
void |
setCustomParam(java.lang.String name,
java.lang.String value)
Set a custom parameter.
|
boolean |
validateBaseUrl()
Validates the provided base url.
|
getBaseUrlpublic PObject customParams
mergeableParams except they are the parameters that will prevent two layers from the same server from
being merged into a single request with both layers. See mergeableParams for a more detailed
example of the difference between mergeableParams and customParams.
The json should look something like:
{
"param1Name": "value",
"param2Name": ["value1", "value2"]
}
public PJsonObject mergeableParams
{
"param1Name": "value",
"param2Name": ["value1", "value2"]
}
For example in WMS the style parameter can be merged. If there are several wms layers that can be
merged except they have different style parameters they can be merged because the style parameter can
be merged.
Compare that to DPI parameter (for QGIS wms mapserver). if two layers have different DPI then the
layers cannot be merged. In this case the DPI should NOT be one of the mergeableParams it should be one of the customParams.public final com.google.common.collect.Multimap<java.lang.String,java.lang.String> getCustomParams()
customParams into a Multimap.public final com.google.common.collect.Multimap<java.lang.String,java.lang.String> getMergeableParams()
mergeableParams into a Multimap.public java.lang.String createCommonUrl()
throws java.net.URISyntaxException
AbstractTiledLayerParamscreateCommonUrl in class AbstractTiledLayerParamsjava.net.URISyntaxExceptionpublic final void setCustomParam(java.lang.String name,
java.lang.String value)
name - the parameter namevalue - the parameter valuepublic boolean validateBaseUrl()
AbstractTiledLayerParamsvalidateBaseUrl in class AbstractTiledLayerParams