|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||
java.lang.Object
|
+--org.mmbase.module.Module
|
+--org.mmbase.module.ProcessorModule
|
+--org.mmbase.module.INFO
The INFO module provides access to the environment on which the mmbase system resides. It can retrieve information on the file system, system memory, time, current user or browser, and miscellaneous information that is not directly related to the object cloud. Most functions in this module are specific for SCAN - other scripting languages generally have their own ways of obtaining this data.
| Field Summary | |
static int |
Dutch
|
static int |
English
|
static int |
Not
|
| Constructor Summary | |
INFO()
Constructor for |
|
| Method Summary | |
java.lang.String |
doExists(scanpage sp,
java.util.StringTokenizer tok)
Tests whether a given filename exists either as a directory, as a file, or as a path (depending on the subcommand given). Subcommands are DIR, FILE, and PATH. |
java.util.Vector |
getList(scanpage sp,
StringTagger tagger,
java.lang.String value)
Generate a list of values from a command to the processor. The commands processed are : COLOR-BASIC : returns a list of (system) color names and their RGB values RANGE-X-Y-Z : returns a list of values in the numeric range X to Y, using Z as the increment factor (step) i.e RANGE-0-12-3 returns the values 0, 3 ,6 ,9, 12 The default values of X, Y and Z are 1, 10 and 1. RANGE-ALPHA : returns the values 'A' thru 'Z' SCANDATE :returns a list of dates (date, month, day, day-of-week) of all directories in a given path with a file length of 10 characters. |
java.lang.String |
getModuleInfo()
Returns a description of the module. |
void |
init()
Initializes the module. |
boolean |
process(scanpage sp,
java.util.Hashtable cmds,
java.util.Hashtable vars)
Execute the commands provided in the form values. |
java.lang.String |
replace(scanpage sp,
java.lang.String cmds)
Handle a $MOD command. |
| Methods inherited from class org.mmbase.module.ProcessorModule |
cacheCheck, getListBuilder, getNodeList, onload, reload, replace, shutdown, unload |
| Methods inherited from class org.mmbase.module.Module |
getClassName, getInitParameter, getInitParameters, getMaintainer, getMimeType, getMimeTypeFile, getModule, getModule, getModules, getName, getProperties, getProperty, getVersion, hasStarted, loadModulesFromDisk, maintainance, setClassName, setInitParameter, setMaintainer, setName, setVersion, shutdownModules, startModule, startModules, state |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
public static final int Not
public static final int Dutch
public static final int English
| Constructor Detail |
public INFO()
| Method Detail |
public void init()
init in class ProcessorModule
public java.util.Vector getList(scanpage sp,
StringTagger tagger,
java.lang.String value)
throws ParseException
getList in class ProcessorModulesp - the current page contexttagger - the parameters (name-value pairs) belonging to the command to processvalue - the command to processVector containing the requested values.
public boolean process(scanpage sp,
java.util.Hashtable cmds,
java.util.Hashtable vars)
process in class ProcessorModulesp - the current page contextcmds - the command to processvars - the variables to processfalse
public java.lang.String replace(scanpage sp,
java.lang.String cmds)
replace in class ProcessorModulesp - the current page contextcmds - the command to processString with the command's result valuepublic java.lang.String getModuleInfo()
getModuleInfo in class ModuleString describing the module's function.
public java.lang.String doExists(scanpage sp,
java.util.StringTokenizer tok)
sp - the current page contexttok - the commands to be executedString withe the value 'YES' if the check succeeded, 'NO' if it failed.
|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||