org.jboss.portal.server.impl.invocation
Class SessionAttributeResolver

java.lang.Object
  extended by org.jboss.portal.server.impl.invocation.SessionAttributeResolver
All Implemented Interfaces:
AttributeResolver

public class SessionAttributeResolver
extends java.lang.Object
implements AttributeResolver

Version:
$Revision: 630 $
Author:
Julien Viet

Field Summary
protected  java.lang.String prefix
          .
protected  javax.servlet.http.HttpServletRequest req
          .
 
Constructor Summary
SessionAttributeResolver(javax.servlet.http.HttpServletRequest req, java.lang.String prefix, boolean principalScoped)
           
 
Method Summary
 java.lang.Object getAttribute(java.lang.Object o)
          Return an attribute from this resolver.
 java.util.Set getKeys()
          Returns the set of keys of the attributes bound in that resolver.
 void setAttribute(java.lang.Object o, java.lang.Object o1)
          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
 

Field Detail

req

protected final javax.servlet.http.HttpServletRequest req
.


prefix

protected final java.lang.String prefix
.

Constructor Detail

SessionAttributeResolver

public SessionAttributeResolver(javax.servlet.http.HttpServletRequest req,
                                java.lang.String prefix,
                                boolean principalScoped)
Method Detail

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 o)
                              throws java.lang.IllegalArgumentException
Description copied from interface: AttributeResolver
Return an attribute from this resolver.

Specified by:
getAttribute in interface AttributeResolver
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 o,
                         java.lang.Object o1)
                  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
o1 - the attribute value
Throws:
java.lang.IllegalArgumentException - if the attribute key is not valid