public static class TLcdWMTSDataSource.Builder extends Object
TLcdWMTSDataSource
instances. By default, all values are null
. You have to at least specify a URI
.
Constructor and Description |
---|
Builder() |
Modifier and Type | Method and Description |
---|---|
TLcdWMTSDataSource.Builder |
all(TLcdWMTSDataSource aDataSource)
Initialized this builder to the values of the given
TLcdWMTSDataSource . |
TLcdWMTSDataSource |
build()
Create the
TLcdWMTSDataSource instance that corresponds to the values in this
builder. |
TLcdWMTSDataSource.Builder |
dimension(String aDimension,
String aValue)
Specify a value for a specific dimension.
|
TLcdWMTSDataSource.Builder |
format(String aFormat)
Specify the format of the loaded tiles.
|
TLcdWMTSDataSource.Builder |
layer(String aLayerId)
Specify the ID of the WMTS layer to load.
|
TLcdWMTSDataSource.Builder |
style(String aStyleId)
Specify the ID of the style to use.
|
TLcdWMTSDataSource.Builder |
uri(String aUri)
Specify the URI of the WMTS server.
|
TLcdWMTSDataSource.Builder |
uri(URI aUri)
Specify the URI of the WMTS server.
|
public TLcdWMTSDataSource.Builder uri(URI aUri)
If the URI's query parameters contain layer
, data
(= alternative for layer), style
or
format
parameters, those are set on this builder as well.
For example, http://hostname:8080/Luciad/wmts?layer=myLayer
specifies myLayer
.
aUri
- The URI of the WMTSpublic TLcdWMTSDataSource.Builder uri(String aUri)
aUri
- The URI of the WMTSpublic TLcdWMTSDataSource.Builder layer(String aLayerId)
Leave out, or pass null
to indicate all
available layers should be loaded.
Use TLcdWMTSClient.getLayers()
to query
the available layers.
aLayerId
- A WMTS layer id.public TLcdWMTSDataSource.Builder style(String aStyleId)
Leave out, or pass null
to indicate the
default style should be used.
Use TLcdWMTSClient.getLayers()
and
TLcdWMTSLayer.getStyles()
for the available styles.
aStyleId
- A style id.public TLcdWMTSDataSource.Builder format(String aFormat)
Leave out, or pass null
to auto-detect
the format to use.
Use TLcdWMTSClient.getLayers()
and TLcdWMTSLayer.getFormats()
for the available formats.
aFormat
- A formatpublic TLcdWMTSDataSource.Builder dimension(String aDimension, String aValue)
Leave out to use the default value for the dimension.
Use TLcdWMTSClient.getLayers()
and TLcdWMTSLayer.getDimensions()
for the available dimensions.
aDimension
- A dimension identifieraValue
- A value to use for this dimensionpublic TLcdWMTSDataSource.Builder all(TLcdWMTSDataSource aDataSource)
TLcdWMTSDataSource
.aDataSource
- The data source instance to copypublic TLcdWMTSDataSource build()
TLcdWMTSDataSource
instance that corresponds to the values in this
builder. You have to at least specify a uri(java.net.URI)
before building the instance.