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