Package org.geotools.ows.wmts.response
Class GetTileResponse
-
public class GetTileResponse extends Response
Represents the response of a tile request.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.
- Author:
- ian
-
-
Field Summary
-
Fields inherited from class Response
httpResponse
-
-
Constructor Summary
Constructors Constructor Description GetTileResponse(HTTPResponse httpResponse, WMTSServiceType wmtsServiceType)
Constructor of GetTileResponse.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method 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)
-
Methods inherited from class Response
dispose, getContentType, getInputStream, parseException
-
-
-
-
Constructor Detail
-
GetTileResponse
public GetTileResponse(HTTPResponse httpResponse, WMTSServiceType wmtsServiceType) throws ServiceException, IOException
Constructor of GetTileResponse. Reads the image if the content-type is set to image. Other content-types should use the responseStream.- Throws:
ServiceException
IOException
-
-
Method Detail
-
getType
public WMTSServiceType getType()
- Returns:
- the type
-
setType
public void setType(WMTSServiceType type)
- Parameters:
type
- the type to set
-
getRequestURL
public URL getRequestURL()
- Returns:
- the requestURL
-
setRequestURL
public void setRequestURL(URL requestURL)
- Parameters:
requestURL
- the requestURL to set
-
getTileImage
public BufferedImage getTileImage()
The tile image in cases where content-type is set to image.
-
-