java.lang.Objectjava.util.Dictionary
java.util.Hashtable
com.ibm.commerce.me.datatype.SupplierCookieTable
This stores the BuyerRequestInfo based on a cookie as a key. It provides a thread safe get and put methods to access the stored objects. It also has an inner class which cleans up the table periodically.
Field Summary | |
static java.lang.String | COPYRIGHT IBM Copyright notice field |
static java.lang.String | PLUS_STRING_CONSTANT value of '+' as a string |
Method Summary | |
BuyerRequestInfo | get(java.lang.String e_supplierCookie) Retrieves the buyer info from the cookie table using the cookie |
static SupplierCookieTable | getInstance() Gets the singleton instance. |
java.lang.String | put(BuyerRequestInfo reqestInfo) Creates a new supplier cookie and add the buyer info into the cookie table. |
static void | setMerchantKey(java.lang.String newMerchantKey) Sets the merchant key with which you can encrypt and decrypt the supplier cookie generated. |
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 |
Field Detail |
public static final java.lang.String COPYRIGHT
public static final java.lang.String PLUS_STRING_CONSTANT
Method Detail |
public BuyerRequestInfo get(java.lang.String e_supplierCookie) throws java.lang.Exception
Note : this method is thread safe as it is synchronized
public static SupplierCookieTable getInstance()
public java.lang.String put(BuyerRequestInfo reqestInfo)
Note : this method is thread safe as it is synchronized
public static void setMerchantKey(java.lang.String newMerchantKey)
(C) Copyright IBM Corporation 1996, 2005. All Rights Reserved.