org.mmbase.module
Class sessionInfo

java.lang.Object
  extended byorg.mmbase.module.sessionInfo

public class sessionInfo
extends java.lang.Object

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

Author:
Daniel Ockeloen
Warning: Will be renamed to:
SessionInfo

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

Constructor Detail

sessionInfo

public sessionInfo(java.lang.String hostname,
                   java.lang.String cookie)

sessionInfo

public sessionInfo(java.lang.String hostname)
Method Detail

setNode

public void setNode(MMObjectNode node)

getNode

public MMObjectNode getNode()

getCookie

public java.lang.String getCookie()

getValue

public java.lang.String getValue(java.lang.String wanted)

setValue

public java.lang.String setValue(java.lang.String key,
                                 java.lang.String value)

removeValue

public java.lang.String removeValue(java.lang.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(java.lang.String key,
                        java.lang.String value)
adds a value to a set, no duplicates are allowed.


putSetValue

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


delSetValue

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


containsSetValue

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


clearSet

public java.lang.String clearSet(java.lang.String key)
delete the values belonging to the key


getSetString

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

Parameters:
key - the name of the session variable

getSetCount

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


getAvgSet

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


getHostName

public java.lang.String getHostName()
returns the hostname of a user


toString

public java.lang.String toString()


MMBase build 1.7.1.20041002