org.mmbase.module
Class sessionInfo

java.lang.Object
  extended by org.mmbase.module.sessionInfo

public class sessionInfo
extends Object

The module which provides access to a filesystem residing in a database.

Author:
Daniel Ockeloen
Application:
SCAN
Rename:
SessionInfo

Field Summary
(package private)  Hashtable<String,Vector<String>> setvalues
           
(package private)  Hashtable<String,String> values
           
 
Constructor Summary
sessionInfo(String hostname)
           
sessionInfo(String hostname, String cookie)
           
 
Method Summary
 void addSetValue(String key, String value)
          adds a value to a set, no duplicates are allowed.
 String clearSet(String key)
          delete the values belonging to the key
 String containsSetValue(String key, String value)
          does this set contain the value ?
 void delSetValue(String key, String value)
          deletes a value from the SESSION set.
 String getAvgSet(String key)
          return the average of a set of numbers
 String getCookie()
           
 String getHostName()
          returns the hostname of a user
 MMObjectNode getNode()
           
 String getSetCount(String key)
          return the number of values contained by a session variable
 String getSetString(String key)
          returns the session variable values comma separaterd
 String getValue(String wanted)
           
 void putSetValue(String key, String value)
          add a value to a set, duplicates are allowed.
 String removeValue(String key)
          Removes (clears) a value from a session.
 void setNode(MMObjectNode node)
           
 String setValue(String key, String value)
           
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

values

Hashtable<String,String> values

setvalues

Hashtable<String,Vector<String>> setvalues
Constructor Detail

sessionInfo

public sessionInfo(String hostname,
                   String cookie)

sessionInfo

public sessionInfo(String hostname)
Method Detail

setNode

public void setNode(MMObjectNode node)

getNode

public MMObjectNode getNode()

getCookie

public String getCookie()

getValue

public String getValue(String wanted)

setValue

public String setValue(String key,
                       String value)

removeValue

public String removeValue(String key)
Removes (clears) a value from a session.

Parameters:
key - the key of the attribute to clear
Returns:
the original value of the attribute

addSetValue

public void addSetValue(String key,
                        String value)
adds a value to a set, no duplicates are allowed.


putSetValue

public void putSetValue(String key,
                        String value)
add a value to a set, duplicates are allowed.


delSetValue

public void delSetValue(String key,
                        String value)
deletes a value from the SESSION set.


containsSetValue

public String containsSetValue(String key,
                               String value)
does this set contain the value ?


clearSet

public String clearSet(String key)
delete the values belonging to the key


getSetString

public String getSetString(String key)
returns the session variable values comma separaterd

Parameters:
key - the name of the session variable

getSetCount

public String getSetCount(String key)
return the number of values contained by a session variable


getAvgSet

public String getAvgSet(String key)
return the average of a set of numbers


getHostName

public String getHostName()
returns the hostname of a user


toString

public String toString()
Overrides:
toString in class Object


MMBase 2.0-SNAPSHOT - null