public class

ResourceCacheHint

extends SimpleHint
java.lang.Object
   ↳ com.microstrategy.utils.cache.SimpleHint
     ↳ com.microstrategy.web.app.utils.cache.ResourceCacheHint

Class Overview

This class is the hint for ResourceCache. The ResourceCache requires the path to the file and its encoding (if any).

Summary

Fields
protected String _encode This field is deprecated. This instance variable should always be accessed through the getEncode() method
protected String _localeID This field is deprecated. This variable is not internally used.
[Expand]
Inherited Fields
From interface com.microstrategy.utils.cache.CacheHint
Protected Constructors
ResourceCacheHint(String path, String encoding)
Initializes a new ResourceCacheHint
ResourceCacheHint(String path, String encoding, String localeID)
This constructor is deprecated. use ResourceCacheHint(path, encoding)
ResourceCacheHint(String path)
Initializes a new ResourceCacheHint with no file encoding.
Public Methods
boolean equals(Object o)
String getEncode()
Returns the encoding that should be used to load the corresponding file.
int hashCode()
Protected Methods
String getPath()
Returns the path to the corresponding file.
[Expand]
Inherited Methods
From class com.microstrategy.utils.cache.SimpleHint
From class java.lang.Object
From interface com.microstrategy.utils.cache.CacheHint

Fields

protected String _encode

This field is deprecated.
This instance variable should always be accessed through the getEncode() method

Identifies the file encoding for the corresponding resource

protected String _localeID

This field is deprecated.
This variable is not internally used.

Identifies the locale for the corresponding resource

Protected Constructors

protected ResourceCacheHint (String path, String encoding)

Initializes a new ResourceCacheHint

Parameters
path The location of the Resource. This location will be resolved by the FileLoader
encoding The encoding to use to load the corresonding file. It can be null or empty string.

protected ResourceCacheHint (String path, String encoding, String localeID)

This constructor is deprecated.
use ResourceCacheHint(path, encoding)

Creates a new ResourceCacheHint with the given parameters. This constructor has been deprecated as locale is not internally used.

protected ResourceCacheHint (String path)

Initializes a new ResourceCacheHint with no file encoding.

Parameters
path The location of the Resource. This location will be resolved by the FileLoader

Public Methods

public boolean equals (Object o)

public String getEncode ()

Returns the encoding that should be used to load the corresponding file.

public int hashCode ()

Protected Methods

protected String getPath ()

Returns the path to the corresponding file.