|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.mmbase.bridge.implementation.ModuleHandler
ModuleHandler Creates a framework for calling modules. Supports calls to the methods supported by the MMBase ProcessorModules.
| Method Summary | |
int |
compareTo(java.lang.Object o)
Compares this module to the passed object. |
boolean |
equals(java.lang.Object o)
Compares two modules, and returns true if they are equal. |
CloudContext |
getCloudContext()
Retrieves the CloudContext to which this module belongs |
java.lang.String |
getDescription()
Retrieve the description of the module. |
java.lang.String |
getInfo(java.lang.String command)
Retrieve info from a module based on a command string. |
java.lang.String |
getInfo(java.lang.String command,
javax.servlet.ServletRequest req,
javax.servlet.ServletResponse resp)
Retrieve info from a module based on a command string Similar to the $MOD command in SCAN. |
NodeList |
getList(java.lang.String command,
java.util.Map parameters)
Retrieve info (as a list of virtual nodes) from a module based on a command string. |
NodeList |
getList(java.lang.String command,
java.util.Map parameters,
javax.servlet.ServletRequest req,
javax.servlet.ServletResponse resp)
Retrieve info from a module based on a command string Similar to the LIST command in SCAN. |
static Module |
getModule(Module mod,
CloudContext cloudcontext)
|
java.lang.String |
getName()
Retrieve the name of the module (in the default language defined in mmbaseroot.xml). |
java.util.Map |
getProperties()
Retrieve a copy of the module's properties |
java.lang.String |
getProperty(java.lang.String name)
Retrieve a property of the module. |
java.lang.Object |
invoke(java.lang.Object proxy,
java.lang.reflect.Method method,
java.lang.Object[] args)
|
void |
process(java.lang.String command,
java.lang.Object parameter)
Runs the command with the given parameter(s). |
void |
process(java.lang.String command,
java.lang.Object parameter,
java.util.Map auxparameters)
Runs the command with the given parameter(s). |
void |
process(java.lang.String command,
java.lang.Object parameter,
java.util.Map auxparameters,
javax.servlet.ServletRequest req,
javax.servlet.ServletResponse resp)
Runs the command with the given parameter(s). |
| Methods inherited from class java.lang.Object |
clone, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
public static Module getModule(Module mod,
CloudContext cloudcontext)
public java.lang.Object invoke(java.lang.Object proxy,
java.lang.reflect.Method method,
java.lang.Object[] args)
throws java.lang.Throwable
java.lang.Throwablepublic CloudContext getCloudContext()
Module
getCloudContext in interface Modulepublic java.lang.String getName()
Module
getName in interface Modulepublic java.lang.String getProperty(java.lang.String name)
Module
getProperty in interface Modulename - the name of the property
public java.util.Map getProperties()
Module
getProperties in interface Modulepublic java.lang.String getDescription()
Module
getDescription in interface Modulepublic java.lang.String getInfo(java.lang.String command)
Module
getInfo in interface Modulecommand - the info to obtain, i.e. "USER-OS".
public java.lang.String getInfo(java.lang.String command,
javax.servlet.ServletRequest req,
javax.servlet.ServletResponse resp)
Module
getInfo in interface Modulecommand - the info to obtain, i.e. "USER-OS".req - the Request item to use for obtaining user information. For backward compatibility.resp - the Response item to use for redirecting users. For backward compatibility.
public void process(java.lang.String command,
java.lang.Object parameter)
Module
process in interface Modulecommand - the command to run, i.e. "MESSAGE-UPDATE".
public void process(java.lang.String command,
java.lang.Object parameter,
java.util.Map auxparameters)
Module
process in interface Modulecommand - the command to run, i.e. "MESSAGE-UPDATE".auxparameters - additional parameters for this command.
public void process(java.lang.String command,
java.lang.Object parameter,
java.util.Map auxparameters,
javax.servlet.ServletRequest req,
javax.servlet.ServletResponse resp)
Module
process in interface Modulecommand - the command to run, i.e. "MESSAGE-UPDATE".auxparameters - additional parameters for this command.req - the Request item to use for obtaining user information. For backward compatibility.resp - the Response item to use for redirecting users. For backward compatibility.
public NodeList getList(java.lang.String command,
java.util.Map parameters)
Module
getList in interface Modulecommand - the info to obtain, i.e. "USER-OS".parameters - a hashtable containing the named parameters of the list.
public NodeList getList(java.lang.String command,
java.util.Map parameters,
javax.servlet.ServletRequest req,
javax.servlet.ServletResponse resp)
Module
getList in interface Modulecommand - the info to obtain, i.e. "USER-OS".parameters - a hashtable containing the named parameters of the list.req - the Request item to use for obtaining user information. For backward compatibility.resp - the Response item to use for redirecting users. For backward compatibility.public int compareTo(java.lang.Object o)
compareTo in interface java.lang.Comparableo - the object to compare it withpublic boolean equals(java.lang.Object o)
o - the object to compare it with
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||