Class ResourceCacheHint
- java.lang.Object
-
- com.microstrategy.utils.cache.SimpleHint
-
- com.microstrategy.web.app.utils.cache.ResourceCacheHint
-
- All Implemented Interfaces:
CacheHint
public class ResourceCacheHint extends SimpleHint
This class is the hint for ResourceCache. The ResourceCache requires the path to the file and its encoding (if any).- Since:
- MicroStrategy Web 7.5.1
-
-
Field Summary
Fields Modifier and Type Field Description protected java.lang.String
_encode
Deprecated.This instance variable should always be accessed through thegetEncode()
methodprotected java.lang.String
_localeID
Deprecated.This variable is not internally used.-
Fields inherited from interface com.microstrategy.utils.cache.CacheHint
ZERO_STATE_ID
-
-
Constructor Summary
Constructors Modifier Constructor Description protected
ResourceCacheHint(java.lang.String path)
Initializes a newResourceCacheHint
with no file encoding.protected
ResourceCacheHint(java.lang.String path, java.lang.String encoding)
Initializes a newResourceCacheHint
protected
ResourceCacheHint(java.lang.String path, java.lang.String encoding, java.lang.String localeID)
Deprecated.useResourceCacheHint(path, encoding)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(java.lang.Object o)
java.lang.String
getEncode()
Returns the encoding that should be used to load the corresponding file.protected java.lang.String
getPath()
Returns the path to the corresponding file.int
hashCode()
-
Methods inherited from class com.microstrategy.utils.cache.SimpleHint
getCacheStateId, getCacheStates, getHint, getState, restoreState, setCacheStateId, setHint, toString
-
-
-
-
Field Detail
-
_encode
protected java.lang.String _encode
Deprecated.This instance variable should always be accessed through thegetEncode()
methodIdentifies the file encoding for the corresponding resource
-
_localeID
protected java.lang.String _localeID
Deprecated.This variable is not internally used.Identifies the locale for the corresponding resource
-
-
Constructor Detail
-
ResourceCacheHint
protected ResourceCacheHint(java.lang.String path, java.lang.String encoding)
Initializes a newResourceCacheHint
- Parameters:
path
- The location of the Resource. This location will be resolved by theFileLoader
encoding
- The encoding to use to load the corresonding file. It can be null or empty string.- Since:
- MicroStrategy Web 9.0.0
-
ResourceCacheHint
protected ResourceCacheHint(java.lang.String path, java.lang.String encoding, java.lang.String localeID)
Deprecated.useResourceCacheHint(path, encoding)
Creates a newResourceCacheHint
with the given parameters. This constructor has been deprecated as locale is not internally used.
-
ResourceCacheHint
protected ResourceCacheHint(java.lang.String path)
Initializes a newResourceCacheHint
with no file encoding.- Parameters:
path
- The location of the Resource. This location will be resolved by theFileLoader
-
-
Method Detail
-
getPath
protected java.lang.String getPath()
Returns the path to the corresponding file.- Since:
- MicroStrategy Web 9.0.0
-
getEncode
public java.lang.String getEncode()
Returns the encoding that should be used to load the corresponding file.
-
equals
public boolean equals(java.lang.Object o)
- Overrides:
equals
in classSimpleHint
- Since:
- MicroStrategy Web 9.0.1
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classSimpleHint
- Since:
- MicroStrategy Web 9.0.1
-
-