com.supermap.services.util.cache
Class SimpleCacheHelperImpl
- java.lang.Object
-
- com.supermap.services.util.cache.SimpleCacheHelperImpl
-
- All Implemented Interfaces:
- SimpleCacheHelper
public final class SimpleCacheHelperImpl extends java.lang.Object implements SimpleCacheHelper
-
-
Constructor Summary
Constructors Constructor and Description SimpleCacheHelperImpl(MapParameter mapParam, java.lang.String outputDir, java.lang.String outputSite)Constructor
-
Method Summary
Methods Modifier and Type Method and Description voidclearCache(java.lang.String mapName, Rectangle2D bounds)Clear the cache in specific areajava.lang.StringgetImageFullURL(MapParameter mapParam, ImageOutputOption outputOption)Get the tile full path based on map parameters and map output settings.int[]getImageIndexs(MapParameter mapParam)Get tile index valuejava.lang.StringgetImageRelativeURL(MapParameter mapParam, ImageOutputOption outputOption)Set the tile relative path based on map parameters and map output settings.
-
-
-
Constructor Detail
-
SimpleCacheHelperImpl
public SimpleCacheHelperImpl(MapParameter mapParam, java.lang.String outputDir, java.lang.String outputSite)
Constructor
- Parameters:
mapParam-outputDir-outputSite-
-
-
Method Detail
-
getImageRelativeURL
public java.lang.String getImageRelativeURL(MapParameter mapParam, ImageOutputOption outputOption)
Set the tile relative path based on map parameters and map output settings.
- Specified by:
getImageRelativeURLin interfaceSimpleCacheHelper- Parameters:
mapParam- map parametersoutputOption- output options- Returns:
- the tile relative path.
-
getImageFullURL
public java.lang.String getImageFullURL(MapParameter mapParam, ImageOutputOption outputOption)
Get the tile full path based on map parameters and map output settings.
- Specified by:
getImageFullURLin interfaceSimpleCacheHelper- Parameters:
mapParam- map parametersoutputOption- output options- Returns:
-
getImageIndexs
public int[] getImageIndexs(MapParameter mapParam)
Get tile index value
- Specified by:
getImageIndexsin interfaceSimpleCacheHelper- Parameters:
mapParam- map parameters- Returns:
-
clearCache
public void clearCache(java.lang.String mapName, Rectangle2D bounds)Clear the cache in specific area
- Specified by:
clearCachein interfaceSimpleCacheHelper- Parameters:
mapName- the map namebounds- the specific range
-
-