|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.mmbase.module.Module
org.mmbase.module.ProcessorModule
The Processor Module extends the basic module to the Processor interface so it can perform for servscan (pagelets).
| Constructor Summary | |
ProcessorModule()
|
|
| Method Summary | |
boolean |
cacheCheck(scanpage sp,
java.lang.String cmd)
Do a cache check (304) for this request |
java.util.Vector |
getList(scanpage sp,
StringTagger params,
java.lang.String command)
Generate a list of values from a command to the processor |
MMObjectBuilder |
getListBuilder(java.lang.String command,
java.util.Map params)
Returns a virtual builder used to create node lists from the results returned by getList(). The default method does not associate the builder with a cloud (mmbase module), so processormodules that need this association need to override this method. Note that different lists may return different builders. |
java.util.Vector |
getNodeList(java.lang.Object context,
java.lang.String command,
java.util.Map params)
Generate a list of values from a command to the processor. The values are grouped into nodes. |
void |
init()
Initializes the module. Init must be overridden to read the environment variables it needs. This method is called by Module.startModule(), which makes sure it is not called
more than once. You should not call init() directly, call startModule() instead. |
void |
onload()
prepares the module when loaded. Onload must be overridden to execute methods that need to be performed when the module is loaded but before any other modules are initailized. This method is called by Module.startModules(). You should not call onload() directly. |
boolean |
process(scanpage sp,
java.util.Hashtable cmds,
java.util.Hashtable vars)
Execute the commands provided in the form values |
void |
reload()
Deprecated. called by nothing |
java.lang.String |
replace(scanpage sp,
java.lang.String command)
Replace a command by a string |
java.lang.String |
replace(scanpage sp,
StringTagger command)
Replace a command by a string who the hell uses this (daniel) |
void |
unload()
Deprecated. called by nothing |
| Methods inherited from class org.mmbase.module.Module |
getInitParameter, getInitParameters, getMaintainer, getMimeType, getMimeTypeFile, getModule, getModule, getModuleInfo, getModules, getName, getProperties, getProperty, getVersion, hasStarted, loadModulesFromDisk, maintainance, setInitParameter, setMaintainer, setName, setVersion, shutdown, shutdownModules, startModule, startModules, state |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public ProcessorModule()
| Method Detail |
public MMObjectBuilder getListBuilder(java.lang.String command,
java.util.Map params)
getListBuilder in interface ProcessorInterfacecommand - the LIST command for which to retrieve the builderparams - contains the attributes for the list
public java.util.Vector getNodeList(java.lang.Object context,
java.lang.String command,
java.util.Map params)
throws ParseException
getNodeList in interface ProcessorInterfacecontext - the context of the page or calling application (currently, this should be a scanpage object)command - the list command to execute.params - contains the attributes for the list
Vector that contains the list values contained in MMObjectNode objects
ParseException
public java.util.Vector getList(scanpage sp,
StringTagger params,
java.lang.String command)
throws ParseException
getList in interface ProcessorInterfacesp - the page contextparams - contains the attributes for the list
ParseException
public boolean process(scanpage sp,
java.util.Hashtable cmds,
java.util.Hashtable vars)
process in interface ProcessorInterface
public java.lang.String replace(scanpage sp,
java.lang.String command)
replace in interface ProcessorInterface
public java.lang.String replace(scanpage sp,
StringTagger command)
replace in interface ProcessorInterface
public boolean cacheCheck(scanpage sp,
java.lang.String cmd)
cacheCheck in interface ProcessorInterfacepublic void reload()
public void unload()
public void init()
Module.startModule(), which makes sure it is not called
more than once. You should not call init() directly, call startModule() instead.
init in class Modulepublic void onload()
Module.startModules(). You should not call onload() directly.
onload in class Module
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||