gov.nih.nci.caarray.services.util.properties
Class HttpFileProperties

java.lang.Object
  extended by gov.nih.nci.caarray.services.util.properties.HttpFileProperties

public final class HttpFileProperties
extends java.lang.Object

This object serves as storage place for file upload annotation information and information about files acquired in different http sessions. Since storing dynamic data in a static map may lead to cleanup problem, the purgeMap method will be called maybe by an ejb timer to remove elemets that are no longer needed after a certain period of time. This could happen if errors occur during applet file upload. Also the elements should be removed from the map immediately after use.


Constructor Summary
HttpFileProperties()
           
 
Method Summary
static void addValue(java.lang.Object key, java.lang.Object value)
           
static boolean containsKey(java.lang.Object key)
           
static java.lang.Object getValue(java.lang.Object key)
           
static void purgeMap(int days)
          To remove items stored in the map after a certain period of time as specified by the passed in days.
static void remove(java.lang.Object key)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

HttpFileProperties

public HttpFileProperties()
Method Detail

containsKey

public static boolean containsKey(java.lang.Object key)

getValue

public static java.lang.Object getValue(java.lang.Object key)

addValue

public static void addValue(java.lang.Object key,
                            java.lang.Object value)

remove

public static void remove(java.lang.Object key)

purgeMap

public static void purgeMap(int days)
To remove items stored in the map after a certain period of time as specified by the passed in days.

Parameters:
days - The time in days that any entry that has been kept in the map for this time duration will be cleaned out from the map.