Class AbstractSessionAttributeResolver
java.lang.Object
org.gatein.pc.api.invocation.resolver.AbstractSessionAttributeResolver
- All Implemented Interfaces:
AttributeResolver
- Direct Known Subclasses:
PrincipalAttributeResolver
- Version:
- $Revision: 7228 $
- Author:
- Julien Viet
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected MapgetAttribute(Object attrKey) Return an attribute from this resolver.getKeys()Returns the set of keys of the attributes bound in that resolver.protected abstract StringvoidsetAttribute(Object attrKey, Object attrValue) Update an attribute value on this resolve.
-
Field Details
-
req
protected final javax.servlet.http.HttpServletRequest req.
-
-
Constructor Details
-
AbstractSessionAttributeResolver
public AbstractSessionAttributeResolver(javax.servlet.http.HttpServletRequest req)
-
-
Method Details
-
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
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
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
-
createMap
-