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 ResourceBaseAdapter
    

    WMTS 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 LocLogger LOGGER 
      protected static RESOURCE 
    • Method Summary

      Methods 
      Modifier and Type Method and Description
      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.
      void create(java.lang.Object obj) 
      protected java.lang.String getBaseUri()
      Get the root address of WMTS service.
      protected WMTSConfig getConfig()
      Get WMTS service configuration information.
      protected Map getMapComponent()
      Get the map service component which provides map functions for WMTS service.
      WMTSGetCapabilities getWMTSCapabilities(Map mapComponent, WMTSConfig wmtsConfig, java.util.List<java.lang.String> publishMapNames, java.lang.String baseUri)
      Get WMTS Capabilities
      boolean isAddContent() 
      boolean isResourceExist()
      Whether resource is existing Local resources always exist.
      boolean isUpdate() 
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • 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 AbstractWMTSResource object by context, request object and response object AbstractWMTSResource.

        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 information
        publishMapNames - map name
        baseUri - url
        Returns: