org.symcomp.scscp
Class CookieStore

java.lang.Object
  extended by java.util.Dictionary<K,V>
      extended by java.util.Hashtable<java.lang.String,OpenMathBase>
          extended by org.symcomp.scscp.CookieStore
All Implemented Interfaces:
java.io.Serializable, java.lang.Cloneable, java.util.Map<java.lang.String,OpenMathBase>

public class CookieStore
extends java.util.Hashtable<java.lang.String,OpenMathBase>

The CookieStore is simply a Hashtable used to store (remote) objects. It is used by the SCSCPServer and SCSCP2RemoteObjectsHandler, there should be no need to handle it manually.

See Also:
Serialized Form

Constructor Summary
CookieStore()
           
 
Method Summary
protected  java.lang.String randomKey()
           
 OpenMathBase retrieve(org.symcomp.openmath.OMReference r)
          Tries to retrieve.
 org.symcomp.openmath.OMReference store(OpenMathBase o)
          Stores under a random key.
 boolean unbind(org.symcomp.openmath.OMReference r)
          Tries to remove.
 
Methods inherited from class java.util.Hashtable
clear, clone, contains, containsKey, containsValue, elements, entrySet, equals, get, hashCode, isEmpty, keys, keySet, put, putAll, rehash, remove, size, toString, values
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

CookieStore

public CookieStore()
Method Detail

randomKey

protected java.lang.String randomKey()

store

public org.symcomp.openmath.OMReference store(OpenMathBase o)
Stores under a random key. Returns OMReference containing key where the object was stored.


retrieve

public OpenMathBase retrieve(org.symcomp.openmath.OMReference r)
Tries to retrieve. Returns the OpenMathBase object if the specified reference was in the store, or null otherwise.


unbind

public boolean unbind(org.symcomp.openmath.OMReference r)
Tries to remove. Returns true if something was removed, false otherwise.



Copyright © 2010. All Rights Reserved.