Interface WmtsCapabilitiesDownloader
- All Known Implementing Classes:
WmtsCapabilitiesDownloaderImpl
public interface WmtsCapabilitiesDownloader
Provides WMTS GetCapabilities documents for
wmtsSource auto-configuration.
Applications may replace the default implementation with their own bean, e.g. to authenticate against a protected GIS server or to serve cached documents.
-
Method Summary
-
Method Details
-
resolveCapabilitiesUrl
Resolves the URL of the GetCapabilities document.- Parameters:
sourceUrl- the WMTS source service URL, may benullexplicitUrl- explicitly configured document URL, may benull- Returns:
explicitUrlif set, otherwise the standard KVP GetCapabilities URL derived fromsourceUrl- Throws:
IllegalArgumentException- if both parameters arenull
-
download
Returns the GetCapabilities document available at the given URL.- Parameters:
url- the document URL- Returns:
- the document content
- Throws:
IllegalStateException- if the document cannot be obtained
-