Class CookieStore

  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.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
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


public CookieStore()
Method Detail


protected java.lang.String randomKey()


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


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.


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

Copyright © 2010. All Rights Reserved.