public final class WmtsCapabilities extends Object implements AutoCloseable
WmtsCapabilities#getCapabilities
for a way of obtaining such information.Modifier and Type | Method and Description |
---|---|
void |
close() |
protected void |
finalize() |
static WmtsCapabilities |
getCapabilities(String url)
Returns the capabilities of a given WMTS url if it can be retrieved.
|
static WmtsCapabilities |
getCapabilities(String url,
WmtsModelDecoderOptions options)
Returns the capabilities of a given WMTS url if it can be retrieved.
|
List<WmtsLayer> |
getLayers()
Returns the layers found during capabilities parsing.
|
public void close()
close
in interface AutoCloseable
@NotNull public static WmtsCapabilities getCapabilities(@NotNull String url) throws IOException
url
- The source's base url from which capabilities have to be retrieved.IOException
- when retrieving or parsing the capabilities fails.@NotNull public static WmtsCapabilities getCapabilities(@NotNull String url, @NotNull WmtsModelDecoderOptions options) throws IOException
url
- The source's base url from which capabilities have to be retrieved.options
- Options for decoding WMTS data, e.g. an optional http client implementation to send HTTP requests when fetching WMTS resources.IOException
- when retrieving or parsing the capabilities fails.