Interface AttributeResolver<K,V>
- All Known Implementing Classes:
AbstractSessionAttributeResolver,MapAttributeResolver,PrincipalAttributeResolver
public interface AttributeResolver<K,V>
An attribute resolver.
- Version:
- $Revision: 7228 $
- Author:
- Julien Viet
-
Method Summary
Modifier and TypeMethodDescriptiongetAttribute(K attrKey) Return an attribute from this resolver.getKeys()Returns the set of keys of the attributes bound in that resolver.voidsetAttribute(K attrKey, V attrValue) Update an attribute value on this resolve.
-
Method Details
-
getKeys
Returns the set of keys of the attributes bound in that resolver.- Returns:
- a set of keys
-
getAttribute
Return an attribute from this resolver.- Parameters:
attrKey-- Returns:
- the attribute value or null if it is not found
- Throws:
IllegalArgumentException- if the attribute key is not valid
-
setAttribute
Update an attribute value on this resolve. If the attribute value is null the resolver must treat the operation as a removal of the attribute.- Parameters:
attrKey-attrValue- the attribute value- Throws:
IllegalArgumentException- if the attribute key is not valid
-