com.ibm.websphere.servlet.cache

Class ConfigElement

  1. java.lang.Object
  2. extended bycom.ibm.websphere.servlet.cache.ConfigElement

Deprecated. This Class represents a variable specified in the cachespec.xml document. If an application uses its own Id or MetaDataGenerator, this class can be used to read the cache policies defined in the Application Assembly Tool (WAS 4.x and higher), or in the cachespec.xml file (WAS 5.0 and higher). It stores all the data specified in the xml file for this variable. The variable may be: For example, a request parameter defined so in cachespec.xml

<request>
<parameter id="cityname" data_id="city" required="true" />
</request>

would generate a ConfigElement object where
  1. public abstract class ConfigElement
  2. extends java.lang.Object

Field Summary

Modifier and Type Field and Description
  1. static
  2. int
Cookie
Deprecated. This specifies that the type of component is a cookie object.
  1. java.lang.String
dataId
Deprecated. This is the data id that makes this entry invalid when it becomes invalid.
  1. java.util.HashSet
exclude
Deprecated. This is a hashset of strings whose keys, if equal to the value of this variable on the request, will exclude this entry from being cached.
  1. boolean
excludeAll
Deprecated. This flag indicates that, if this variable is present on the request, the servlet/JSP should not be cached.
  1. java.lang.String
id
Deprecated. This is the identifier of the cache entry.
  1. boolean
ignoreValue
Deprecated. This flag indicates that, if this variable is present on the request, its value will not be used to generate the cache id.
  1. java.lang.String
invalidate
Deprecated. This is the invalidation ID for this entry.
  1. java.lang.String
method
Deprecated. This is the method to be called on the command or object.
  1. static
  2. int
RequestAttribute
Deprecated. This specifies that the type of component is an attribute of the request object.
  1. static
  2. int
RequestParameter
Deprecated. This specifies that the type of component is a parameter from the request object.
  1. boolean
required
Deprecated. This flag indicates whether or not this variable is required to generate the cache ID for this entry.
  1. static
  2. int
SessionParameter
Deprecated. This specifies that the type of component is an parameter from the HTTPSession object.
  1. int
type
Deprecated. This specifies the component type of the variable.

Constructor Summary

Constructor and Description
ConfigElement()
Deprecated.

Method Summary

Modifier and Type Method and Description
  1. abstract
  2. java.lang.String
getDataId()
Deprecated. This gets the data id variable.
  1. abstract
  2. java.util.HashSet
getExclude()
Deprecated. This gets the set of strings that, if equal to the value of this variable on the request, will exclude this entry from being cached.
  1. abstract
  2. boolean
getExcludeAll()
Deprecated. This gets the value of the excludeAll flag.
  1. abstract
  2. java.lang.String
getId()
Deprecated. This gets the id variable.
  1. abstract
  2. boolean
getIgnoreValue()
Deprecated. This gets the value of the ignoreValue flag.
  1. abstract
  2. java.lang.String
getInvalidate()
Deprecated. This gets value of the inavalidate variable.
  1. abstract
  2. java.lang.String
getMethod()
Deprecated. This gets the value of the method variable.
  1. abstract
  2. boolean
getRequired()
Deprecated. This gets the value of the required flag.
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

Field Detail

type

  1. public int type
Deprecated.
This specifies the component type of the variable. For Servlets/ JSPs it may be set to ConfigElement.RequestParameter, ConfigElement.RequestAttribute, ConfigElement.SessionParameter or ConfigElement.Cookie

RequestParameter

  1. public static final int RequestParameter
Deprecated.
This specifies that the type of component is a parameter from the request object.
See Also:

RequestAttribute

  1. public static final int RequestAttribute
Deprecated.
This specifies that the type of component is an attribute of the request object.
See Also:

SessionParameter

  1. public static final int SessionParameter
Deprecated.
This specifies that the type of component is an parameter from the HTTPSession object.
See Also:

  1. public static final int Cookie
Deprecated.
This specifies that the type of component is a cookie object.
See Also:

id

  1. public java.lang.String id
Deprecated.
This is the identifier of the cache entry. It must be unique within the scope of the cache. which is the WebSphere server group for the application.

method

  1. public java.lang.String method
Deprecated.
This is the method to be called on the command or object.

dataId

  1. public java.lang.String dataId
Deprecated.
This is the data id that makes this entry invalid when it becomes invalid. It must be unique within the same scope as the CacheEntry id. These data ids identify the underlying dynamic content (i.e., the raw data). When a piece of data is used in only one CacheEntry, the data id of the data can be the same as the CacheEntry id. When a piece of data is used in multiple fragments, its data id would be different from any of the CacheEntry ids.

invalidate

  1. public java.lang.String invalidate
Deprecated.
This is the invalidation ID for this entry.

exclude

  1. public java.util.HashSet exclude
Deprecated.
This is a hashset of strings whose keys, if equal to the value of this variable on the request, will exclude this entry from being cached.

required

  1. public boolean required
Deprecated.
This flag indicates whether or not this variable is required to generate the cache ID for this entry.

excludeAll

  1. public boolean excludeAll
Deprecated.
This flag indicates that, if this variable is present on the request, the servlet/JSP should not be cached.

ignoreValue

  1. public boolean ignoreValue
Deprecated.
This flag indicates that, if this variable is present on the request, its value will not be used to generate the cache id.

Constructor Detail

ConfigElement

  1. public ConfigElement()
Deprecated.

Method Detail

getId

  1. public abstract java.lang.String getId( )
Deprecated.
This gets the id variable.
Returns:
The cache id.

getMethod

  1. public abstract java.lang.String getMethod( )
Deprecated.
This gets the value of the method variable.
Returns:
The method name.

getDataId

  1. public abstract java.lang.String getDataId( )
Deprecated.
This gets the data id variable.
Returns:
The data id.

getInvalidate

  1. public abstract java.lang.String getInvalidate( )
Deprecated.
This gets value of the inavalidate variable.
Returns:
The invalidation id.

getExclude

  1. public abstract java.util.HashSet getExclude( )
Deprecated.
This gets the set of strings that, if equal to the value of this variable on the request, will exclude this entry from being cached.
Returns:
Set of variables values.

getExcludeAll

  1. public abstract boolean getExcludeAll( )
Deprecated.
This gets the value of the excludeAll flag.
Returns:
True, if a servlet/ JSP should not be cached.

getRequired

  1. public abstract boolean getRequired( )
Deprecated.
This gets the value of the required flag.
Returns:
True, if the variable is required to create the cache id.

getIgnoreValue

  1. public abstract boolean getIgnoreValue( )
Deprecated.
This gets the value of the ignoreValue flag.
Returns:
True if the value of this variable can be ignored while building the cache id.