com.atlassian.confluence.rpc.auth
Class TokenMap

java.lang.Object
  extended by java.util.AbstractMap<K,V>
      extended by java.util.HashMap
          extended by com.atlassian.confluence.rpc.auth.TokenMap
All Implemented Interfaces:
Serializable, Cloneable, Map

public class TokenMap
extends HashMap

A simple map with a timeout on the get/put methods.

See Also:
Serialized Form

Nested Class Summary
 
Nested classes/interfaces inherited from class java.util.AbstractMap
AbstractMap.SimpleEntry<K,V>, AbstractMap.SimpleImmutableEntry<K,V>
 
Constructor Summary
TokenMap(long tokenTimeout)
           
 
Method Summary
 void clear()
           
 Object clone()
           
 Set entrySet()
           
 Object get(Object key)
           
 Set keySet()
           
 Object put(Object key, Object value)
           
 void putAll(Map m)
           
 Object remove(Object key)
           
 Collection values()
           
 
Methods inherited from class java.util.HashMap
containsKey, containsValue, isEmpty, size
 
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
 

Constructor Detail

TokenMap

public TokenMap(long tokenTimeout)
Method Detail

put

public Object put(Object key,
                  Object value)
Specified by:
put in interface Map
Overrides:
put in class HashMap

get

public Object get(Object key)
Specified by:
get in interface Map
Overrides:
get in class HashMap

remove

public Object remove(Object key)
Specified by:
remove in interface Map
Overrides:
remove in class HashMap

clear

public void clear()
Specified by:
clear in interface Map
Overrides:
clear in class HashMap

clone

public Object clone()
Overrides:
clone in class HashMap

values

public Collection values()
Specified by:
values in interface Map
Overrides:
values in class HashMap

putAll

public void putAll(Map m)
Specified by:
putAll in interface Map
Overrides:
putAll in class HashMap

entrySet

public Set entrySet()
Specified by:
entrySet in interface Map
Overrides:
entrySet in class HashMap

keySet

public Set keySet()
Specified by:
keySet in interface Map
Overrides:
keySet in class HashMap


Copyright © 2003-2012 Atlassian. All Rights Reserved.