public static final class WmsModelDecoderOptions.Builder extends Object implements AutoCloseable
Builder
for the WMS options.Constructor and Description |
---|
Builder(WmsModelDecoderOptions.Builder other) |
Modifier and Type | Method and Description |
---|---|
WmsModelDecoderOptions |
build()
Builds the options for the WMS model decoder.
|
void |
close() |
protected void |
finalize() |
WmsModelDecoderOptions.Builder |
httpClient(IHttpClient httpClient)
Sets the http client to be used for fetching the data.
|
public Builder(@NotNull WmsModelDecoderOptions.Builder other)
public void close()
close
in interface AutoCloseable
@NotNull public WmsModelDecoderOptions build() throws IllegalStateException
IllegalStateException
- If not all mandatory parameters are set.@NotNull public WmsModelDecoderOptions.Builder httpClient(@Nullable IHttpClient httpClient)
Calling this function is optional.
See related article for an example on how to customize HTTP requests when loading data.
httpClient
- HTTP client implementation to fetch the WMS resources. When null
the decoder uses its own HTTP client.