public class sessions extends ProcessorModule implements sessionsInterface
ProcessorModule.GetNodeListFunction, ProcessorModule.ProcessFunction, ProcessorModule.ReplaceFunction| Modifier and Type | Field and Description |
|---|---|
(package private) MMObjectBuilder |
props |
(package private) Hashtable<String,sessionInfo> |
sessions |
(package private) MMObjectBuilder |
users |
PARAM_PAGEINFO, PARAMS_PAGEINFOconfigurationPath, getMaintainerFunction, getVersionFunction, properties, STATE_START_TIMEdescription, guiName, namefunctions, getFunctions| Constructor and Description |
|---|
sessions()
sessions Module constructor.
|
| Modifier and Type | Method and Description |
|---|---|
void |
addSetValue(sessionInfo session,
String key,
String value)
Adds a String to a set.
|
void |
addSetValues(sessionInfo session,
String key,
Vector<Object> values)
Adds a number of Strings to a set.
|
String |
doAddSet(scanpage sp,
StringTokenizer tok)
Adds a sessionvariable with specified value
|
String |
doClearSet(scanpage sp,
StringTokenizer tok)
This methode clears a SESSION variable
|
String |
doDelSet(scanpage sp,
StringTokenizer tok) |
Vector |
doGetSet(scanpage sp,
StringTokenizer tok) |
String |
doPutSet(scanpage sp,
StringTokenizer tok) |
void |
forgetSession(String wanted) |
String |
getAvgSet(scanpage sp,
StringTokenizer tok) |
String |
getContainsSet(scanpage sp,
StringTokenizer tok)
Checks if a Session variable contains a certain value.
|
Vector |
getList(scanpage sp,
StringTagger tagger,
String cmd) |
sessionInfo |
getSession(scanpage sp,
String wanted) |
String |
getSetCount(scanpage sp,
StringTokenizer tok)
Gives the number of values contained by a certain session variable
|
String |
getSetString(scanpage sp,
StringTokenizer tok)
returns the values of a session variable comma separated
|
int |
getSize() |
Map<String,String> |
getStates()
Returns the module's runtime-generated state information as a unmodifiable map with name-value pairs.
|
String |
getValue(sessionInfo session,
String wanted) |
void |
init()
Initializes the module.
|
void |
loadNewProperties(sessionInfo session) |
void |
loadProperties(sessionInfo session) |
String |
replace(scanpage sp,
String cmds)
Handle a $MOD command
|
String |
saveValue(sessionInfo session,
String key) |
String |
saveValueNew(sessionInfo session,
String key) |
String |
setValue(sessionInfo session,
String key,
String value)
Sets or changes a parameter in a sessionInfo.
|
void |
setValueFromNode(sessionInfo session,
MMObjectNode node) |
(package private) void |
setVisitInfo(sessionInfo session)
Stores visiting info (counters) in a session
|
Map<String,String> |
state() |
String |
xmlEscape(String s)
the XML reader will correct the escaped characters again.
|
getList, getListBuilder, getNodeList, onload, process, reload, replace, replace, unloadaddInitParameters, getInitParameter, getInitParameter, getInitParameter, getInitParameters, getInitParameters, getMaintainer, getModule, getModule, getModule, getModule, getModuleInfo, getModuleLoader, getModuleReader, getModuleReader, getModules, getState, getVersion, hasModule, hasStarted, loadInitParameters, loadInitParameters, maintainance, setInitParameter, setMaintainer, setState, setVersion, shutdown, shutdownModules, startModule, startModulesgetDefaultLocale, getDescription, getDescription, getGUIName, getGUIName, getLocalizedDescription, getLocalizedGUIName, getName, setDescription, setDescription, setGUIName, setGUIName, setLocalizedDescription, setLocalizedGUIName, setNameaddFunction, createParameters, getFunction, getFunctions, getFunctionValue, newFunctionInstanceHashtable<String,sessionInfo> sessions
MMObjectBuilder props
MMObjectBuilder users
public void init()
ProcessorModuleModule.startModule(), which makes sure it is not called
more than once. You should not call init() directly, call startModule() instead.init in interface sessionsInterfaceinit in class ProcessorModulepublic sessionInfo getSession(scanpage sp, String wanted)
getSession in interface sessionsInterfacepublic void forgetSession(String wanted)
forgetSession in interface sessionsInterfacepublic String getValue(sessionInfo session, String wanted)
getValue in interface sessionsInterfacepublic String setValue(sessionInfo session, String key, String value)
setValue in interface sessionsInterfacesession - the sessionInfo wich has to contain
the parameter.key - the name of the parameter to be set.value - the value to wich the parameter should be set.public void addSetValues(sessionInfo session, String key, Vector<Object> values)
addSetValues in interface sessionsInterfacesession - the sessionInfo containing the set.key - the name of the set.values - a Vector containing the
Strings to be added to the set.public void addSetValue(sessionInfo session, String key, String value)
addSetValue in interface sessionsInterfacesession - the sessionInfo containing the set.key - the name of the set.value - the String to be added to the set.public void setValueFromNode(sessionInfo session, MMObjectNode node)
setValueFromNode in interface sessionsInterfacepublic void loadProperties(sessionInfo session)
public void loadNewProperties(sessionInfo session)
public String saveValue(sessionInfo session, String key)
saveValue in interface sessionsInterfacepublic String saveValueNew(sessionInfo session, String key)
public Vector getList(scanpage sp, StringTagger tagger, String cmd) throws ParseException
ParseExceptionpublic String replace(scanpage sp, String cmds)
replace in interface sessionsInterfacepublic String doAddSet(scanpage sp, StringTokenizer tok)
public String doPutSet(scanpage sp, StringTokenizer tok)
public String doClearSet(scanpage sp, StringTokenizer tok)
public String getAvgSet(scanpage sp, StringTokenizer tok)
public String doDelSet(scanpage sp, StringTokenizer tok)
public String getContainsSet(scanpage sp, StringTokenizer tok)
public Vector doGetSet(scanpage sp, StringTokenizer tok)
public String getSetString(scanpage sp, StringTokenizer tok)
public String getSetCount(scanpage sp, StringTokenizer tok)
public int getSize()
public Map<String,String> getStates()
Modulevoid setVisitInfo(sessionInfo session)
MMBase 1.9-SNAPSHOT - ${javadoctimestamp}