com.supermap.services.wmts.rest
Class AbstractWMTSResource
- java.lang.Object
-
- ResourceBaseAdapter
-
- com.supermap.services.wmts.rest.AbstractWMTSResource
-
- Direct Known Subclasses:
- GetFeatureInfoResource, ServiceMetadataResource, TileResource
public abstract class AbstractWMTSResource extends ResourceBaseAdapterWMTS resource abstract class. The abstract of the basic functions of the needed resources when realizing RESTful WMTS service.
-
-
Field Summary
Fields Modifier and Type Field and Description protected static LocLoggerLOGGERprotected staticRESOURCE
-
Constructor Summary
Constructors Constructor and Description AbstractWMTSResource(Context context, Request request, Response response)Construct function, construct theAbstractWMTSResourceobject by context, request object and response objectAbstractWMTSResource.
-
Method Summary
Methods Modifier and Type Method and Description voidcheckGetTileParams(WMTSGetTileParameter tileParameter, java.util.List<java.lang.String> mapNames, java.util.List<TileMatrixSet> tileMatrixSets, VerifyMode verifyMode)Check whether the layer, tileMatrixSet, tileMatrix, tileRow, tileCol, and style operations of WMST TileParamter are correct.voidcreate(java.lang.Object obj)protected java.lang.StringgetBaseUri()Get the root address of WMTS service.protected WMTSConfiggetConfig()Get WMTS service configuration information.protected MapgetMapComponent()Get the map service component which provides map functions for WMTS service.WMTSGetCapabilitiesgetWMTSCapabilities(Map mapComponent, WMTSConfig wmtsConfig, java.util.List<java.lang.String> publishMapNames, java.lang.String baseUri)Get WMTS CapabilitiesbooleanisAddContent()booleanisResourceExist()Whether resource is existing Local resources always exist.booleanisUpdate()
-
-
-
Field Detail
-
RESOURCE
protected static final RESOURCE
-
LOGGER
protected static final LocLogger LOGGER
-
-
Constructor Detail
-
AbstractWMTSResource
public AbstractWMTSResource(Context context, Request request, Response response)Construct function, construct the
AbstractWMTSResourceobject by context, request object and response objectAbstractWMTSResource.- Parameters:
context- REST context.request- request object.response- response object.
-
-
Method Detail
-
getConfig
protected final WMTSConfig getConfig()
Get WMTS service configuration information.
- Returns:
- WMTS service configuration information.
-
getBaseUri
protected final java.lang.String getBaseUri()
Get the root address of WMTS service.
- Returns:
- the root address of the service.
-
getMapComponent
protected final Map getMapComponent()
Get the map service component which provides map functions for WMTS service.
- Returns:
- the map service component.
-
checkGetTileParams
public void checkGetTileParams(WMTSGetTileParameter tileParameter, java.util.List<java.lang.String> mapNames, java.util.List<TileMatrixSet> tileMatrixSets, VerifyMode verifyMode)
Check whether the layer, tileMatrixSet, tileMatrix, tileRow, tileCol, and style operations of WMST TileParamter are correct.
- Parameters:
tileParameter-mapNames-tileMatrixSets-verifyMode-- Since:
- 7.1.0
-
create
public void create(java.lang.Object obj)
-
isAddContent
public boolean isAddContent()
-
isUpdate
public boolean isUpdate()
-
isResourceExist
public boolean isResourceExist()
Whether resource is existing Local resources always exist.
- Returns:
- true.
-
getWMTSCapabilities
public WMTSGetCapabilities getWMTSCapabilities(Map mapComponent, WMTSConfig wmtsConfig, java.util.List<java.lang.String> publishMapNames, java.lang.String baseUri)
Get WMTS Capabilities- Parameters:
mapComponent-wmtsConfig- configuration informationpublishMapNames- map namebaseUri- url- Returns:
-
-