public static class TLcdWMTSDataSource.Builder
extends java.lang.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(java.lang.String aDimension,
java.lang.String aValue)
Specify a value for a specific dimension.
|
TLcdWMTSDataSource.Builder |
format(java.lang.String aFormat)
Specify the format of the loaded tiles.
|
TLcdWMTSDataSource.Builder |
layer(java.lang.String aLayerId)
Specify the ID of the WMTS layer to load.
|
TLcdWMTSDataSource.Builder |
style(java.lang.String aStyleId)
Specify the ID of the style to use.
|
TLcdWMTSDataSource.Builder |
uri(java.lang.String aUri)
Specify the URI of the WMTS server.
|
TLcdWMTSDataSource.Builder |
uri(java.net.URI aUri)
Specify the URI of the WMTS server.
|
public TLcdWMTSDataSource.Builder uri(java.net.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(java.lang.String aUri)
aUri
- The URI of the WMTSpublic TLcdWMTSDataSource.Builder layer(java.lang.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(java.lang.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(java.lang.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(java.lang.String aDimension, java.lang.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.