Package org.geotools.ows.wmts.request
Class AbstractGetTileRequest
Object
AbstractRequest
AbstractWMTSRequest
AbstractGetTileRequest
- All Implemented Interfaces:
Request,GetTileRequest
- Direct Known Subclasses:
WMTSSpecification.GetMultiTileRequest,WMTSSpecification.GetSingleTileRequest
(Based on existing work by rgould for WMS service)
- Author:
- ian, Emanuele Tajariol (etj at geo-solutions dot it)
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected WMTSCapabilitiesstatic final Stringprotected WMTSLayerstatic final Stringstatic final Stringprotected Stringprotected WMTSServiceTypeFields inherited from class AbstractRequest
EXCEPTION_XML, hints, onlineResource, properties -
Constructor Summary
ConstructorsConstructorDescriptionAbstractGetTileRequest(URL onlineResource, Properties properties) Constructs a GetMapRequest.AbstractGetTileRequest(URL onlineResource, Properties properties, HTTPClient client) -
Method Summary
Modifier and TypeMethodDescriptionprotected abstract StringcreateTemplateUrl(String tileMatrixSetName) Used when creating WMTSTileService's based on a templateUrl.getCrs()HTTP headers required for some WMTS *protected StringReturns the resourceUrl specified in capabilities for a RESTful GetTile request.protected Integerprotected StringReturns the tileMatrixSet for the requestprotected IntegergetTiles()Compute the set of tiles needed to generate the image.protected voidprotected abstract voidSets up the version number for this request.voidsetCRS(CoordinateReferenceSystem coordinateReferenceSystem) voidvoidvoidsetRequestedBBox(ReferencedEnvelope requestedBBox) voidsetRequestedHeight(int height) voidsetRequestedTime(String requestedTime) voidsetRequestedWidth(int width) voidSets 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 AbstractWMTSRequest
initServiceMethods inherited from class AbstractRequest
getFinalURL, getPostContentType, getProperties, getRequestHints, performPostOutput, processKey, requiresPost, setProperty, setRequestHintsMethods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface Request
createResponse, getFinalURL, getPostContentType, getProperties, getRequestHints, performPostOutput, requiresPost, setProperty, setRequestHints
-
Field Details
-
LAYER
- See Also:
-
STYLE
- See Also:
-
FORMAT
- See Also:
-
layer
-
styleName
-
type
-
capabilities
-
-
Constructor Details
-
AbstractGetTileRequest
Constructs a GetMapRequest. The data passed in represents valid values that can be used.- Parameters:
onlineResource- the location that the request should be applied toproperties- pre-set properties to be used. Can be null.
-
AbstractGetTileRequest
-
-
Method Details
-
initVersion
protected 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 classAbstractRequest
-
initRequest
protected void initRequest()- Specified by:
initRequestin classAbstractRequest
-
setLayer
- Specified by:
setLayerin interfaceGetTileRequest
-
setStyle
Sets the style name for the request- Specified by:
setStylein interfaceGetTileRequest
-
getFormat
-
setFormat
- Specified by:
setFormatin interfaceGetTileRequest
-
setTileMatrixSet
Sets the tileMatrixSet for the request.- Specified by:
setTileMatrixSetin interfaceGetTileRequest
-
getTileMatrixSet
Returns the tileMatrixSet for the request -
setTileMatrix
- Specified by:
setTileMatrixin interfaceGetTileRequest
-
getTileMatrix
-
setTileRow
- Specified by:
setTileRowin interfaceGetTileRequest
-
getTileRow
-
setTileCol
- Specified by:
setTileColin interfaceGetTileRequest
-
getTileCol
-
setRequestedHeight
public void setRequestedHeight(int height) - Specified by:
setRequestedHeightin interfaceGetTileRequest
-
setRequestedWidth
public void setRequestedWidth(int width) - Specified by:
setRequestedWidthin interfaceGetTileRequest
-
setRequestedBBox
- Specified by:
setRequestedBBoxin interfaceGetTileRequest
-
getRequestedTime
-
setRequestedTime
- Specified by:
setRequestedTimein interfaceGetTileRequest
-
getHeaders
Description copied from interface:GetTileRequestHTTP headers required for some WMTS *- Specified by:
getHeadersin interfaceGetTileRequest
-
getCrs
- Returns:
- the crs
-
setCRS
- Specified by:
setCRSin interfaceGetTileRequest
-
getTiles
Compute the set of tiles needed to generate the image.- Specified by:
getTilesin interfaceGetTileRequest- Throws:
ServiceException
-
createTemplateUrl
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
-
getTemplateUrl
Returns the resourceUrl specified in capabilities for a RESTful GetTile request.Connected to a separate layer and format
-