public class WebMapTileServer extends AbstractOpenWebService<WMTSCapabilities,Layer>
It is used to access the Capabilities document and perform requests. It will perform version negotiation automatically and use the highest known version that the server can communicate.
capabilities, headers, hints, info, LOGGER, resourceInfo, serverURL, specification, specs| Constructor and Description |
|---|
WebMapTileServer(URL serverURL)
Set up the WebMapTileServer by calling serverURL with the default http client.
|
WebMapTileServer(URL serverURL,
HTTPClient httpClient)
Set up the WebMapTileServer by the given serverUrl using the given http client.
|
WebMapTileServer(URL serverURL,
HTTPClient httpClient,
Map<String,String> headers)
Set up the WebMapTileServer by the given serverUrl, using the http client with additional
headers.
|
WebMapTileServer(URL serverURL,
HTTPClient httpClient,
WMTSCapabilities capabilities)
Set up the WebMapTileServer by the given capabilities, with the given serverURL.
|
WebMapTileServer(URL serverURL,
HTTPClient httpClient,
WMTSCapabilities capabilities,
Map<String,Object> hints)
Set up the WebMapTileServer by the given capabilities, with the given serverURL and
additional hints.
|
WebMapTileServer(WebMapTileServer delegate)
Set up a WebMapTileServer by the same serverURL as delegate
|
WebMapTileServer(WMTSCapabilities capabilities)
Set up the WebMapTileServer with the given capabilities.
|
| Modifier and Type | Method and Description |
|---|---|
GetFeatureInfoRequest |
createGetFeatureInfoRequest(GetTileRequest getmap) |
GetTileRequest |
createGetTileRequest() |
protected ServiceInfo |
createInfo()
Implemented by a subclass to describe service
|
protected ResourceInfo |
createInfo(Layer resource) |
WMTSCapabilities |
getCapabilities()
Get the getCapabilities document.
|
GeneralEnvelope |
getEnvelope(Layer layer,
CoordinateReferenceSystem crs) |
Map<String,String> |
getHeaders()
Deprecated.
headers should be set by a constructor
|
WMTSServiceType |
getType() |
GetFeatureInfoResponse |
issueRequest(GetFeatureInfoRequest request) |
Set<Tile> |
issueRequest(GetTileRequest tileRequest) |
void |
setType(WMTSServiceType type) |
protected void |
setupSpecifications()
Sets up the specifications/versions that this server is capable of communicating with.
|
getHints, getHTTPClient, getInfo, getInfo, internalIssueRequest, issueRequest, negotiateVersion, setHints, setHttpClient, setLoggingLevelpublic WebMapTileServer(URL serverURL, HTTPClient httpClient) throws ServiceException, IOException
serverURL - httpClient - ServiceExceptionIOExceptionpublic WebMapTileServer(URL serverURL, HTTPClient httpClient, Map<String,String> headers) throws ServiceException, IOException
serverURL - httpClient - headers - ServiceExceptionIOExceptionpublic WebMapTileServer(URL serverURL, HTTPClient httpClient, WMTSCapabilities capabilities) throws ServiceException, IOException
serverURL - httpClient - capabilities - ServiceExceptionIOExceptionpublic WebMapTileServer(URL serverURL, HTTPClient httpClient, WMTSCapabilities capabilities, Map<String,Object> hints) throws ServiceException, IOException
serverURL - httpClient - capabilities - hints - ServiceExceptionIOExceptionpublic WebMapTileServer(URL serverURL) throws IOException, ServiceException
serverURL - IOExceptionServiceExceptionpublic WebMapTileServer(WMTSCapabilities capabilities) throws ServiceException, IOException
capabilities - ServiceExceptionIOExceptionpublic WebMapTileServer(WebMapTileServer delegate) throws ServiceException, IOException
delegate - ServiceExceptionIOExceptionpublic WMTSCapabilities getCapabilities()
AbstractOpenWebServicegetCapabilities in class AbstractOpenWebService<WMTSCapabilities,Layer>protected ServiceInfo createInfo()
AbstractOpenWebServicecreateInfo in class AbstractOpenWebService<WMTSCapabilities,Layer>protected ResourceInfo createInfo(Layer resource)
createInfo in class AbstractOpenWebService<WMTSCapabilities,Layer>protected void setupSpecifications()
AbstractOpenWebServicesetupSpecifications in class AbstractOpenWebService<WMTSCapabilities,Layer>public Set<Tile> issueRequest(GetTileRequest tileRequest) throws ServiceException
ServiceExceptionpublic GetTileRequest createGetTileRequest()
public GetFeatureInfoRequest createGetFeatureInfoRequest(GetTileRequest getmap)
public GetFeatureInfoResponse issueRequest(GetFeatureInfoRequest request)
public void setType(WMTSServiceType type)
type - public WMTSServiceType getType()
@Deprecated public Map<String,String> getHeaders()
public GeneralEnvelope getEnvelope(Layer layer, CoordinateReferenceSystem crs)
Copyright © 1996–2021 Geotools. All rights reserved.