Package org.geotools.ows.wmts.response
Class GetTileResponse
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
ConstructorsConstructorDescriptionGetTileResponse
(HTTPResponse httpResponse, WMTSServiceType wmtsServiceType) Constructor of GetTileResponse. -
Method Summary
Modifier and TypeMethodDescriptionThe tile image in cases where content-type is set to image.getType()
void
setRequestURL
(URL requestURL) void
setType
(WMTSServiceType type) Methods inherited from class Response
dispose, getContentType, getInputStream, parseException
-
Constructor Details
-
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 Details
-
getType
- Returns:
- the type
-
setType
- Parameters:
type
- the type to set
-
getRequestURL
- Returns:
- the requestURL
-
setRequestURL
- Parameters:
requestURL
- the requestURL to set
-
getTileImage
The tile image in cases where content-type is set to image.
-