public class GetTileResponse extends Response
In most cases this is a image, but it can also be a file like kml with reference to an image. In such cases the content-type / responseStream must be used. Error-situations is managed in the same manner as other OWS responses.
httpResponse
Constructor and Description |
---|
GetTileResponse(HTTPResponse httpResponse,
WMTSServiceType wmtsServiceType)
Constructor of GetTileResponse.
|
Modifier and Type | Method and Description |
---|---|
URL |
getRequestURL() |
BufferedImage |
getTileImage()
The tile image in cases where content-type is set to image.
|
WMTSServiceType |
getType() |
void |
setRequestURL(URL requestURL) |
void |
setType(WMTSServiceType type) |
dispose, getContentType, getInputStream, parseException
public GetTileResponse(HTTPResponse httpResponse, WMTSServiceType wmtsServiceType) throws ServiceException, IOException
ServiceException
IOException
public WMTSServiceType getType()
public void setType(WMTSServiceType type)
type
- the type to setpublic URL getRequestURL()
public void setRequestURL(URL requestURL)
requestURL
- the requestURL to setpublic BufferedImage getTileImage()
Copyright © 1996–2023 Geotools. All rights reserved.