当前页面:
在线文档首页 >
JBOSS Portal 2.6 API 英文版文档
AbstractSessionAttributeResolver - JBOSS Portal 2.6 API 英文版文档
org.jboss.portal.server.impl
Class AbstractSessionAttributeResolver
java.lang.Object
org.jboss.portal.server.impl.AbstractSessionAttributeResolver
- All Implemented Interfaces:
- AttributeResolver
- Direct Known Subclasses:
- PrincipalAttributeResolver, SessionAttributeResolver
- public abstract class AbstractSessionAttributeResolver
- extends java.lang.Object
- implements AttributeResolver
- Version:
- $Revision: 1.1 $
- Author:
- Julien Viet
Field Summary |
protected javax.servlet.http.HttpServletRequest |
req
. |
Method Summary |
protected java.util.Map |
createMap(java.lang.String mapKey)
|
java.lang.Object |
getAttribute(java.lang.Object attrKey)
Return an attribute from this resolver. |
java.util.Set |
getKeys()
Returns the set of keys of the attributes bound in that resolver. |
private java.util.Map |
getMap(boolean create)
|
protected abstract java.lang.String |
getMapKey()
|
void |
setAttribute(java.lang.Object attrKey,
java.lang.Object attrValue)
Update an attribute value on this resolve. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
req
protected final javax.servlet.http.HttpServletRequest req
- .
AbstractSessionAttributeResolver
public AbstractSessionAttributeResolver(javax.servlet.http.HttpServletRequest req)
getKeys
public java.util.Set getKeys()
- Description copied from interface:
AttributeResolver
- Returns the set of keys of the attributes bound in that resolver.
- Specified by:
getKeys
in interface AttributeResolver
- Returns:
- a set of keys
getAttribute
public java.lang.Object getAttribute(java.lang.Object attrKey)
throws java.lang.IllegalArgumentException
- Description copied from interface:
AttributeResolver
- Return an attribute from this resolver.
- Specified by:
getAttribute
in interface AttributeResolver
- Parameters:
attrKey
-
- Returns:
- the attribute value or null if it is not found
- Throws:
java.lang.IllegalArgumentException
- if the attribute key is not valid
setAttribute
public void setAttribute(java.lang.Object attrKey,
java.lang.Object attrValue)
throws java.lang.IllegalArgumentException
- Description copied from interface:
AttributeResolver
- 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.
- Specified by:
setAttribute
in interface AttributeResolver
- Parameters:
attrKey
- attrValue
- the attribute value
- Throws:
java.lang.IllegalArgumentException
- if the attribute key is not valid
getMapKey
protected abstract java.lang.String getMapKey()
createMap
protected java.util.Map createMap(java.lang.String mapKey)
getMap
private java.util.Map getMap(boolean create)