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
    • 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

      • 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.