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:
java.io.Serializable, java.lang.Cloneable, java.util.Map

public class TokenMap
extends java.util.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
java.util.AbstractMap.SimpleEntry<K,V>, java.util.AbstractMap.SimpleImmutableEntry<K,V>
 
Constructor Summary
TokenMap(long tokenTimeout)
           
 
Method Summary
 void clear()
           
 java.lang.Object clone()
           
 java.util.Set entrySet()
           
 java.lang.Object get(java.lang.Object key)
           
 java.util.Set keySet()
           
 java.lang.Object put(java.lang.Object key, java.lang.Object value)
           
 void putAll(java.util.Map m)
           
 java.lang.Object remove(java.lang.Object key)
           
 java.util.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 java.lang.Object put(java.lang.Object key,
                            java.lang.Object value)
Specified by:
put in interface java.util.Map
Overrides:
put in class java.util.HashMap

get

public java.lang.Object get(java.lang.Object key)
Specified by:
get in interface java.util.Map
Overrides:
get in class java.util.HashMap

remove

public java.lang.Object remove(java.lang.Object key)
Specified by:
remove in interface java.util.Map
Overrides:
remove in class java.util.HashMap

clear

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

clone

public java.lang.Object clone()
Overrides:
clone in class java.util.HashMap

values

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

putAll

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

entrySet

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

keySet

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


Copyright © 2003-2014 Atlassian. All Rights Reserved.