|
||||||||||
| 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(Object o)
Compares this module to the passed object. |
Parameters |
createParameters(String functionName)
Creates a parameter list for a function. |
boolean |
equals(Object o)
Compares two modules, and returns true if they are equal. |
protected Cloud |
getCloud(Map parameters)
|
CloudContext |
getCloudContext()
Retrieves the CloudContext to which this module belongs |
String |
getDescription()
Retrieve the description of the module. |
Function |
getFunction(String functionName)
Returns a Fuction object. |
Collection |
getFunctions()
Returns all the Function objects of this Module. |
FieldValue |
getFunctionValue(String functionName,
List parameters)
Executes a function on this module with the given parameters, and returns the result. |
String |
getInfo(String command)
Retrieve info from a module based on a command string. |
String |
getInfo(String command,
ServletRequest req,
ServletResponse resp)
Retrieve info from a module based on a command string Similar to the $MOD command in SCAN. |
NodeList |
getList(String command,
Map parameters)
Retrieve info (as a list of virtual nodes) from a module based on a command string. |
NodeList |
getList(String command,
Map parameters,
ServletRequest req,
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)
|
String |
getName()
Retrieve the name of the module (in the default language defined in mmbaseroot.xml). |
Map |
getProperties()
Retrieve a copy of the module's properties |
String |
getProperty(String name)
Retrieve a property of the module. |
Object |
invoke(Object proxy,
Method method,
Object[] args)
|
void |
process(String command,
Object parameter)
Runs the command with the given parameter(s). |
void |
process(String command,
Object parameter,
Map auxparameters)
Runs the command with the given parameter(s). |
void |
process(String command,
Object parameter,
Map auxparameters,
ServletRequest req,
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 Object invoke(Object proxy,
Method method,
Object[] args)
throws Throwable
invoke in interface InvocationHandlerThrowablepublic CloudContext getCloudContext()
Module
getCloudContext in interface Moduleprotected Cloud getCloud(Map parameters)
public String getName()
Module
getName in interface Modulepublic String getProperty(String name)
Module
getProperty in interface Modulename - the name of the property
public Map getProperties()
Module
getProperties in interface Modulepublic String getDescription()
Module
getDescription in interface Modulepublic String getInfo(String command)
Module
getInfo in interface Modulecommand - the info to obtain, i.e. "USER-OS".
public String getInfo(String command,
ServletRequest req,
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(String command,
Object parameter)
Module
process in interface Modulecommand - the command to run, i.e. "MESSAGE-UPDATE".parameter - the main parameter for the command. Depends on the command issued. Not all
commands make use of this parameter.
public void process(String command,
Object parameter,
Map auxparameters)
Module
process in interface Modulecommand - the command to run, i.e. "MESSAGE-UPDATE".parameter - the main parameter for the command. Depends on the command issued. Not all
commands make use of this parameter.auxparameters - additional parameters for this command.
public void process(String command,
Object parameter,
Map auxparameters,
ServletRequest req,
ServletResponse resp)
Module
process in interface Modulecommand - the command to run, i.e. "MESSAGE-UPDATE".parameter - the main parameter for the command. Depends on the command issued. Not all
commands make use of this parameter.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(String command,
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(String command,
Map parameters,
ServletRequest req,
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(Object o)
compareTo in interface Comparableo - the object to compare it withpublic boolean equals(Object o)
o - the object to compare it withpublic Collection getFunctions()
Module
getFunctions in interface ModuleFunction objects.public Function getFunction(String functionName)
ModuleFunction object.
You need to explixitly cast the result to this object, since not all bridge
implementations (i.e. the RMMCI) support this class.
getFunction in interface ModulefunctionName - name of the function
Function object.public Parameters createParameters(String functionName)
Module
createParameters in interface ModulefunctionName - name of the function
Parameters object.
public FieldValue getFunctionValue(String functionName,
List parameters)
Module
getFunctionValue in interface ModulefunctionName - name of the functionparameters - list with parameters for the fucntion
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||