Class AbstractSessionAttributeResolver
- java.lang.Object
-
- org.gatein.pc.api.invocation.resolver.AbstractSessionAttributeResolver
-
- All Implemented Interfaces:
AttributeResolver
- Direct Known Subclasses:
PrincipalAttributeResolver
public abstract class AbstractSessionAttributeResolver extends Object implements AttributeResolver
- Version:
- $Revision: 7228 $
- Author:
- Julien Viet
-
-
Field Summary
Fields Modifier and Type Field Description protected javax.servlet.http.HttpServletRequestreq.
-
Constructor Summary
Constructors Constructor Description AbstractSessionAttributeResolver(javax.servlet.http.HttpServletRequest req)
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description protected MapcreateMap(String mapKey)ObjectgetAttribute(Object attrKey)Return an attribute from this resolver.SetgetKeys()Returns the set of keys of the attributes bound in that resolver.protected abstract StringgetMapKey()voidsetAttribute(Object attrKey, Object attrValue)Update an attribute value on this resolve.
-
-
-
Method Detail
-
getKeys
public Set getKeys()
Description copied from interface:AttributeResolverReturns the set of keys of the attributes bound in that resolver.- Specified by:
getKeysin interfaceAttributeResolver- Returns:
- a set of keys
-
getAttribute
public Object getAttribute(Object attrKey) throws IllegalArgumentException
Description copied from interface:AttributeResolverReturn an attribute from this resolver.- Specified by:
getAttributein interfaceAttributeResolver- Returns:
- the attribute value or null if it is not found
- Throws:
IllegalArgumentException- if the attribute key is not valid
-
setAttribute
public void setAttribute(Object attrKey, Object attrValue) throws IllegalArgumentException
Description copied from interface:AttributeResolverUpdate an attribute value on this resolve. If the attribute value is null the resolver must treat the operation as a removal of the attribute.- Specified by:
setAttributein interfaceAttributeResolverattrValue- the attribute value- Throws:
IllegalArgumentException- if the attribute key is not valid
-
getMapKey
protected abstract String getMapKey()
-
-