IBM WebSphere Extended Deployment (XD)TM
Release 6.0

com.ibm.wsspi.giop.filter
FilterAttributeBucket



Defines a bucket of attributes used by filters. Buckets are scoped globally, within filter contexts, and at individual service contexts. This class has been picked up from the proxy component.


Method Summary
public  booleancontainsAttribute(java.lang.Object)
           Returns whether a bucket contains a mapping for the specified key. .
public  ObjectgetAttribute(java.lang.Object)
           Returns the value to which the specified key is mapped in this bucket, or =null if the bucket contains no mapping for this key.
public  MapgetAttributes()
           Returns all proxy- and filter-defined bucket attributes as a Map of Object keys and values.
public  ObjectremoveAttribute(java.lang.Object)
           Removes any mapping for the specified key from the bucket. .
public  ObjectsetAttribute(java.lang.Object, java.lang.Object)
           Associates the specified value with the specified key in this bucket. If the bucket previously.

Method Detail

containsAttribute

public boolean containsAttribute(Object key)
Returns whether a bucket contains a mapping for the specified key.

Refer to #getAttribute for details concerning attributes.

Parameters:
    key - The key whose presence in this bucket is to be tested.


Returns:
     =true if this map contains a mapping for the specified key; otherwise =false.


getAttribute

public Object getAttribute(Object key)
Returns the value to which the specified key is mapped in this bucket, or =null if the bucket contains no mapping for this key. A return value of null does not necessarily indicate that the bucket contains no mapping for the key; it is also possible that the bucket explicitly maps the key to null. The #containsAttribute method may be used to distinguish these two cases.
Parameters:
    key - The key whose associated value is to be returned.


Returns:
     The value to which this bucket maps the specified key, or =null if the bucket contains no mapping for this key.


getAttributes

public Map getAttributes()
Returns all proxy- and filter-defined bucket attributes as a Map of Object keys and values.

Refer to #getAttribute for details concerning attributes.



Returns:
     A Map of all bucket attributes.


removeAttribute

public Object removeAttribute(Object key)
Removes any mapping for the specified key from the bucket.

Refer to #getAttribute for details concerning attributes.

Parameters:
    key - Key whose mapping is to be removed from the bucket.


Returns:
     Previous value associated with specified key, or =null if there was no mapping for key. A null return can also indicate that the bucket previously associated null with the specified key.


setAttribute

public Object setAttribute(Object key,Object value)
Associates the specified value with the specified key in this bucket. If the bucket previously contained a mapping for this key, the old value is replaced.

Refer to #getAttribute for details concerning attributes.

Parameters:
    key - Key with which the specified value is to be associated.
    value - Value to be associated with the specified key.


Returns:
     Previous value associated with specified key, or =null if there was no mapping for key. A null return can also indicate that the bucket previously associated null with the specified key.


IBM WebSphere Extended Deployment (XD)TM
Release 6.0