org.sonatype.aether.util
Class DefaultSessionData

java.lang.Object
  extended by org.sonatype.aether.util.DefaultSessionData
All Implemented Interfaces:
SessionData

public class DefaultSessionData
extends java.lang.Object
implements SessionData

A simple session data storage backed by a thread-safe map.

Author:
Benjamin Bentmann

Constructor Summary
DefaultSessionData()
           
 
Method Summary
 java.lang.Object get(java.lang.Object key)
          Gets the session data associated with the specified key.
 void set(java.lang.Object key, java.lang.Object value)
          Associates the specified session data with the given key.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DefaultSessionData

public DefaultSessionData()
Method Detail

set

public void set(java.lang.Object key,
                java.lang.Object value)
Description copied from interface: SessionData
Associates the specified session data with the given key.

Specified by:
set in interface SessionData
Parameters:
key - The key under which to store the session data, must not be null.
value - The data to associate with the key, may be null to remove the mapping.

get

public java.lang.Object get(java.lang.Object key)
Description copied from interface: SessionData
Gets the session data associated with the specified key.

Specified by:
get in interface SessionData
Parameters:
key - The key for which to retrieve the session data, must not be null.
Returns:
The session date associated with the key or null if none.


Copyright © 2010-2011 Sonatype, Inc.. All Rights Reserved.