play.mvc
Class Http.Session

java.lang.Object
  extended by java.util.AbstractMap<K,V>
      extended by java.util.HashMap<java.lang.String,java.lang.String>
          extended by play.mvc.Http.Session
All Implemented Interfaces:
java.io.Serializable, java.lang.Cloneable, java.util.Map<java.lang.String,java.lang.String>
Enclosing class:
Http

public static class Http.Session
extends java.util.HashMap<java.lang.String,java.lang.String>

HTTP Session.

Session data are encoded into an HTTP cookie, and can only contain simple String values.

See Also:
Serialized Form

Nested Class Summary
 
Nested classes/interfaces inherited from class java.util.AbstractMap
java.util.AbstractMap.SimpleEntry<K,V>, java.util.AbstractMap.SimpleImmutableEntry<K,V>
 
Field Summary
 boolean isDirty
           
 
Constructor Summary
Http.Session(java.util.Map<java.lang.String,java.lang.String> data)
           
 
Method Summary
 void clear()
          Clears the session.
 java.lang.String put(java.lang.String key, java.lang.String value)
          Adds the given value to the session.
 void putAll(java.util.Map<? extends java.lang.String,? extends java.lang.String> values)
          Adds the given values to the session.
 java.lang.String remove(java.lang.Object key)
          Removes the specified value from the session.
 
Methods inherited from class java.util.HashMap
clone, containsKey, containsValue, entrySet, get, isEmpty, keySet, size, values
 
Methods inherited from class java.util.AbstractMap
equals, hashCode, toString
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface java.util.Map
equals, hashCode
 

Field Detail

isDirty

public boolean isDirty
Constructor Detail

Http.Session

public Http.Session(java.util.Map<java.lang.String,java.lang.String> data)
Method Detail

remove

public java.lang.String remove(java.lang.Object key)
Removes the specified value from the session.

Specified by:
remove in interface java.util.Map<java.lang.String,java.lang.String>
Overrides:
remove in class java.util.HashMap<java.lang.String,java.lang.String>

put

public java.lang.String put(java.lang.String key,
                            java.lang.String value)
Adds the given value to the session.

Specified by:
put in interface java.util.Map<java.lang.String,java.lang.String>
Overrides:
put in class java.util.HashMap<java.lang.String,java.lang.String>

putAll

public void putAll(java.util.Map<? extends java.lang.String,? extends java.lang.String> values)
Adds the given values to the session.

Specified by:
putAll in interface java.util.Map<java.lang.String,java.lang.String>
Overrides:
putAll in class java.util.HashMap<java.lang.String,java.lang.String>

clear

public void clear()
Clears the session.

Specified by:
clear in interface java.util.Map<java.lang.String,java.lang.String>
Overrides:
clear in class java.util.HashMap<java.lang.String,java.lang.String>