public final class WmsCapabilities extends Object implements AutoCloseable
WmsCapabilities#getCapabilities
for a way of obtaining such information.WmsDataSource.Builder
,
WmsModelDecoder#decode
Modifier and Type | Method and Description |
---|---|
void |
close() |
protected void |
finalize() |
static WmsCapabilities |
getCapabilities(String url)
Returns the capabilities of a given WMS url if it can be retrieved.
|
static WmsCapabilities |
getCapabilities(String url,
WmsModelDecoderOptions options)
Returns the capabilities of a given WMS url if it can be retrieved.
|
List<String> |
getMapFormats()
Returns the all available formats for a GetMap request.
|
String |
getServerUrl()
Returns the entry url for the server.
|
WmsLayer |
getTopLevelLayer()
Returns the top layer if any.
|
String |
getVersion()
Returns the capabilities specification version.
|
public void close()
close
in interface AutoCloseable
@NotNull public static WmsCapabilities 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 WmsCapabilities getCapabilities(@NotNull String url, @NotNull WmsModelDecoderOptions options) throws IOException
url
- The source's base url from which capabilities have to be retrieved.options
- Options for decoding WMS data, e.g. an optional http client implementation to send HTTP requests when fetching WMS resources.IOException
- when retrieving or parsing the capabilities fails.@Nullable public WmsLayer getTopLevelLayer()
null
.@NotNull public String getServerUrl()
@NotNull public List<String> getMapFormats()
@NotNull public String getVersion()
The current supported version are "1.1.1" and "1.3.0".