|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectariba.util.core.TokenTable
public class TokenTable
A table of tokens that map to objects. Objects can be stored in the TokenTable. A token is returned that can be used to remove the object. The object is invalidated after the expireTime milliseconds.
| Constructor Summary | |
|---|---|
TokenTable()
Creates a new TokenTable with the default expiration time. |
|
TokenTable(long expireTime)
Creates a new TokenTable. |
|
| Method Summary | |
|---|---|
String |
insert(Object object)
This method inserts the given object into the token table and assigns it a unique random string for lookup. |
Object |
lookup(String token)
This method looks up the object stored in our table for the given token string. |
Object |
remove(String token)
This method removes and returns the object stored in our table for the given token string. |
String |
toString()
|
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public TokenTable()
public TokenTable(long expireTime)
| Method Detail |
|---|
public String insert(Object object)
public Object lookup(String token)
public Object remove(String token)
public String toString()
toString in class Object
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||