Package org.geotools.ows.wmts.request
Class AbstractGetTileRequest
- Object
- 
- AbstractRequest
- 
- AbstractWMTSRequest
- 
- AbstractGetTileRequest
 
 
 
- 
- All Implemented Interfaces:
- Request,- GetTileRequest
 - Direct Known Subclasses:
- WMTSSpecification.GetMultiTileRequest,- WMTSSpecification.GetSingleTileRequest
 
 public abstract class AbstractGetTileRequest extends AbstractWMTSRequest implements GetTileRequest (Based on existing work by rgould for WMS service)- Author:
- ian, Emanuele Tajariol (etj at geo-solutions dot it)
 
- 
- 
Field SummaryFields Modifier and Type Field Description protected WMTSCapabilitiescapabilitiesstatic StringFORMATprotected WMTSLayerlayerstatic StringLAYERstatic StringSTYLEprotected StringstyleNameprotected WMTSServiceTypetype- 
Fields inherited from class AbstractRequestEXCEPTION_XML, hints, onlineResource, properties
 
- 
 - 
Constructor SummaryConstructors Constructor Description AbstractGetTileRequest(URL onlineResource, Properties properties)Constructs a GetMapRequest.AbstractGetTileRequest(URL onlineResource, Properties properties, HTTPClient client)
 - 
Method SummaryAll Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description protected abstract StringcreateTemplateUrl(String tileMatrixSetName)Used when creating WMTSTileService's based on a templateUrl.CoordinateReferenceSystemgetCrs()StringgetFormat()Map<String,String>getHeaders()HTTP headers required for some WMTS *protected StringgetRequestedTime()StringgetTemplateUrl()Returns the resourceUrl specified in capabilities for a RESTful GetTile request.protected IntegergetTileCol()StringgetTileMatrix()protected StringgetTileMatrixSet()Returns the tileMatrixSet for the requestprotected IntegergetTileRow()Set<Tile>getTiles()Compute the set of tiles needed to generate the image.protected voidinitRequest()protected abstract voidinitVersion()Sets up the version number for this request.voidsetCRS(CoordinateReferenceSystem coordinateReferenceSystem)voidsetFormat(String format)voidsetLayer(WMTSLayer layer)voidsetRequestedBBox(ReferencedEnvelope requestedBBox)voidsetRequestedHeight(int height)voidsetRequestedTime(String requestedTime)voidsetRequestedWidth(int width)voidsetStyle(String styleName)Sets the style name for the requestvoidsetTileCol(Integer tileCol)voidsetTileMatrix(String tileMatrix)voidsetTileMatrixSet(String tileMatrixSet)Sets the tileMatrixSet for the request.voidsetTileRow(Integer tileRow)- 
Methods inherited from class AbstractWMTSRequestinitService
 - 
Methods inherited from class AbstractRequestgetFinalURL, getPostContentType, getProperties, getRequestHints, performPostOutput, processKey, requiresPost, setProperty, setRequestHints
 - 
Methods inherited from class Objectclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 - 
Methods inherited from interface RequestcreateResponse, getFinalURL, getPostContentType, getProperties, getRequestHints, performPostOutput, requiresPost, setProperty, setRequestHints
 
- 
 
- 
- 
- 
Field Detail- 
LAYERpublic static final String LAYER - See Also:
- Constant Field Values
 
 - 
STYLEpublic static final String STYLE - See Also:
- Constant Field Values
 
 - 
FORMATpublic static final String FORMAT - See Also:
- Constant Field Values
 
 - 
layerprotected WMTSLayer layer 
 - 
styleNameprotected String styleName 
 - 
typeprotected WMTSServiceType type 
 - 
capabilitiesprotected WMTSCapabilities capabilities 
 
- 
 - 
Constructor Detail- 
AbstractGetTileRequestpublic AbstractGetTileRequest(URL onlineResource, Properties properties) Constructs a GetMapRequest. The data passed in represents valid values that can be used.- Parameters:
- onlineResource- the location that the request should be applied to
- properties- pre-set properties to be used. Can be null.
 
 - 
AbstractGetTileRequestpublic AbstractGetTileRequest(URL onlineResource, Properties properties, HTTPClient client) 
 
- 
 - 
Method Detail- 
initVersionprotected abstract void initVersion() Description copied from class:AbstractRequestSets up the version number for this request. Typically something like setProperty("VERSION", "1.1.1");- Specified by:
- initVersionin class- AbstractRequest
 
 - 
initRequestprotected void initRequest() - Specified by:
- initRequestin class- AbstractRequest
 
 - 
setLayerpublic void setLayer(WMTSLayer layer) - Specified by:
- setLayerin interface- GetTileRequest
 
 - 
setStylepublic void setStyle(String styleName) Sets the style name for the request- Specified by:
- setStylein interface- GetTileRequest
 
 - 
getFormatpublic String getFormat() 
 - 
setFormatpublic void setFormat(String format) - Specified by:
- setFormatin interface- GetTileRequest
 
 - 
setTileMatrixSetpublic void setTileMatrixSet(String tileMatrixSet) Sets the tileMatrixSet for the request.- Specified by:
- setTileMatrixSetin interface- GetTileRequest
 
 - 
getTileMatrixSetprotected String getTileMatrixSet() Returns the tileMatrixSet for the request
 - 
setTileMatrixpublic void setTileMatrix(String tileMatrix) - Specified by:
- setTileMatrixin interface- GetTileRequest
 
 - 
getTileMatrixpublic String getTileMatrix() 
 - 
setTileRowpublic void setTileRow(Integer tileRow) - Specified by:
- setTileRowin interface- GetTileRequest
 
 - 
getTileRowprotected Integer getTileRow() 
 - 
setTileColpublic void setTileCol(Integer tileCol) - Specified by:
- setTileColin interface- GetTileRequest
 
 - 
getTileColprotected Integer getTileCol() 
 - 
setRequestedHeightpublic void setRequestedHeight(int height) - Specified by:
- setRequestedHeightin interface- GetTileRequest
 
 - 
setRequestedWidthpublic void setRequestedWidth(int width) - Specified by:
- setRequestedWidthin interface- GetTileRequest
 
 - 
setRequestedBBoxpublic void setRequestedBBox(ReferencedEnvelope requestedBBox) - Specified by:
- setRequestedBBoxin interface- GetTileRequest
 
 - 
getRequestedTimeprotected String getRequestedTime() 
 - 
setRequestedTimepublic void setRequestedTime(String requestedTime) - Specified by:
- setRequestedTimein interface- GetTileRequest
 
 - 
getHeaderspublic Map<String,String> getHeaders() Description copied from interface:GetTileRequestHTTP headers required for some WMTS *- Specified by:
- getHeadersin interface- GetTileRequest
 
 - 
getCrspublic CoordinateReferenceSystem getCrs() - Returns:
- the crs
 
 - 
setCRSpublic void setCRS(CoordinateReferenceSystem coordinateReferenceSystem) - Specified by:
- setCRSin interface- GetTileRequest
 
 - 
getTilespublic Set<Tile> getTiles() throws ServiceException Compute the set of tiles needed to generate the image.- Specified by:
- getTilesin interface- GetTileRequest
- Throws:
- ServiceException
 
 - 
createTemplateUrlprotected abstract String createTemplateUrl(String tileMatrixSetName) Used when creating WMTSTileService's based on a templateUrl.If the server supports RESTful calls. It will use that. Otherwise it will create a similar template for KVP requests. - Parameters:
- tileMatrixSetName- the name of the tileMatrixSet. This is expected to be UTF-8 encoded
- Returns:
- template URL used containing placeholders for request parameters
 
 - 
getTemplateUrlpublic String getTemplateUrl() Returns the resourceUrl specified in capabilities for a RESTful GetTile request.Connected to a separate layer and format 
 
- 
 
-