com.supermap.services.components

Class MapConfig

  • java.lang.Object
    • com.supermap.services.components.MapConfig
  • All Implemented Interfaces:
    java.io.Serializable


    public class MapConfig
    extends java.lang.Object
    implements java.io.Serializable
    

    Map service component configuration information.

    See Also:
    Serialized Form
    • Constructor Detail

      • MapConfig

        public MapConfig()
        

        Default constructor.

    • Method Detail

      • getOutputPath

        public java.lang.String getOutputPath()
        

        Gets the output path of the map image.

        Returns:
        The output path of the map image.
      • getExpired

        public long getExpired()
        

        Gets expiration time

        Returns:
        Since:
        7.0.0
      • setExpired

        public void setExpired(long expired)
        

        Sets expiration time

        Parameters:
        expired -
        Since:
        7.0.0
      • getOutputSite

        public java.lang.String getOutputSite()
        

        Gets the publishing site for the map image.

        Returns:
        the publishing site of the map image.
      • setOutputPath

        public MapConfig setOutputPath(java.lang.String outputPath)
        

        Sets the output path of the map image.

        Parameters:
        outputPath - Sets the output path of the map image.
      • setOutputSite

        public MapConfig setOutputSite(java.lang.String outputSite)
        

        Sets the publishing site for the map image.

        Parameters:
        outputSite - the publishing site of the map image.
      • getLogLevel

        @Deprecated
        public java.lang.String getLogLevel()
        
        Deprecated. 

        Gets the log level.

        Returns:
        the log level
      • setLogLevel

        @Deprecated
        public MapConfig setLogLevel(java.lang.String logLevel)
        
        Deprecated. 

        Sets the log level.

        Parameters:
        logLevel - the log level.
      • isUseCache

        public boolean isUseCache()
        

        Whether to use component-level independent cache. Each component can configure if the independent cache can be opened, for example:service Component that takes tile cache as the source of service can close the independent cache. Open or close the independent cache by configuring the useCache property of Component Config.

        Returns:
        Whether to use component-level cache.
      • setUseCache

        public MapConfig setUseCache(boolean useCache)
        

        Whether to use component-level cache.

        Parameters:
        useCache - Whether to use component-level cache.
      • getTileCacheConfig

        public TileSourceInfo getTileCacheConfig()
        

        Gets the raster tile cache configuration

        Returns:
        Since:
        7.0.0
      • setTileCacheConfig

        public MapConfig setTileCacheConfig(TileSourceInfo tileCacheConfig)
        

        Sets the raster tile cache configuration

        Parameters:
        tileCacheConfig -
        Returns:
        Since:
        7.0.0
      • getUtfGridCacheConfig

        public TileSourceInfo getUtfGridCacheConfig()
        

        Gets the UTFGrid cache configuration

        Returns:
        Since:
        7.0.0
      • setUtfGridCacheConfig

        public MapConfig setUtfGridCacheConfig(TileSourceInfo utfGridCacheConfig)
        

        Sets the UTFGrid cache configuration

        Parameters:
        utfGridCacheConfig -
        Returns:
        Since:
        7.0.0
      • getVectorTileCacheConfig

        public TileSourceInfo getVectorTileCacheConfig()
        

        Gets the SVTiles cache configuration

        Returns:
        Since:
        7.0.0
      • setVectorTileCacheConfig

        public MapConfig setVectorTileCacheConfig(TileSourceInfo vectorTileCacheConfig)
        

        Sets the SVTiles cache configuration

        Parameters:
        vectorTileCacheConfig -
        Returns:
        Since:
        7.0.0
      • getCacheConfigs

        public CacheConfig[] getCacheConfigs()
        
      • isClip

        @Deprecated
        public boolean isClip()
        
        Deprecated. 

        Whether to use splicing to cut out the graph.

        Returns:
        Whether to use splicing to cut out the graph.
      • setClip

        @Deprecated
        public MapConfig setClip(boolean clip)
        
        Deprecated. 

        Sets whether to use splicing to cut out the graph.

        Parameters:
        clip - Whether to use splicing to cut out the graph.
      • equals

        public boolean equals(java.lang.Object obj)
        

        Determines whether the map component configuration object is the same as the current object.

        Overrides:
        equals in class java.lang.Object
        Parameters:
        obj -
        Returns:
        If it is the same, returns True; otherwise, returns False.
        Since:
        6.1.3
      • hashCode

        public final int hashCode()
        
        Gets the hash value of the object instance
        Overrides:
        hashCode in class java.lang.Object
        Returns:
        hash value
      • isCacheReadOnly

        public boolean isCacheReadOnly()
        
      • setCacheReadOnly

        public MapConfig setCacheReadOnly(boolean cacheReadOnly)
        
      • isUseVectorTileCache

        public boolean isUseVectorTileCache()
        
      • setUseVectorTileCache

        public void setUseVectorTileCache(boolean useVectorTileCache)
        
      • isUseUTFGridCache

        public boolean isUseUTFGridCache()
        
      • setUseUTFGridCache

        public void setUseUTFGridCache(boolean useUTFGridCache)