|
xmlBlaster 2.2.0 API | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.xmlBlaster.engine.admin.intern.MsgHandler
public final class MsgHandler
Implementation of administrative access to xmlBlaster messages.
Field Summary | |
---|---|
private CommandManager |
commandManager
|
private ServerScope |
glob
|
private static java.util.logging.Logger |
log
|
private java.lang.String |
ME
|
Constructor Summary | |
---|---|
MsgHandler()
|
Method Summary | |
---|---|
MsgUnit[] |
get(AddressServer addressServer,
java.lang.String sessionId,
CommandWrapper cmd)
Your plugin should process the command. |
java.lang.String |
getName()
Get a human readable name of this filter implementation |
java.lang.String |
getType()
Return plugin type for Plugin loader |
java.lang.String |
getVersion()
Return plugin version for Plugin loader |
java.lang.String |
help()
|
java.lang.String |
help(java.lang.String cmd)
|
void |
init(Global glob,
PluginInfo pluginInfo)
This method is called by the PluginManager (enforced by I_Plugin). |
void |
initialize(ServerScope glob,
CommandManager commandManager)
This is called after creation of the plugin. |
java.lang.String |
set(AddressServer addressServer,
java.lang.String sessionId,
CommandWrapper cmd)
Set a value. |
void |
shutdown()
Cleans up the resource. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
private java.lang.String ME
private ServerScope glob
private static java.util.logging.Logger log
private CommandManager commandManager
Constructor Detail |
---|
public MsgHandler()
Method Detail |
---|
public void initialize(ServerScope glob, CommandManager commandManager)
initialize
in interface I_CommandHandler
glob
- The Global handle of this xmlBlaster server instance.commandManager
- My big brother taking care of mepublic void init(Global glob, PluginInfo pluginInfo)
init
in interface I_Plugin
I_Plugin.init(org.xmlBlaster.util.Global,org.xmlBlaster.util.plugin.PluginInfo)
public java.lang.String getType()
getType
in interface I_Plugin
public java.lang.String getVersion()
getVersion
in interface I_Plugin
public java.lang.String getName()
public MsgUnit[] get(AddressServer addressServer, java.lang.String sessionId, CommandWrapper cmd) throws XmlBlasterException
I_CommandHandler
get
in interface I_CommandHandler
addressServer
- The protocol plugin or external access layer calling ussessionId
- Is null if not logged incmd
- The command to process, e.g. "clientList"
XmlBlasterException
org.xmlBlaster.engine.admin.I_CommandHandler#get(String,CommandWrapper)
public java.lang.String set(AddressServer addressServer, java.lang.String sessionId, CommandWrapper cmd) throws XmlBlasterException
set
in interface I_CommandHandler
sessionId
- Is null if not logged incmd
- "/node/heron/topic/HelloMsgOid/?content=World"addressServer
- The protocol plugin or external access layer calling us
XmlBlasterException
public java.lang.String help()
help
in interface I_CommandHandler
public java.lang.String help(java.lang.String cmd)
help
in interface I_CommandHandler
public void shutdown()
I_Plugin
shutdown
in interface I_CommandHandler
shutdown
in interface I_Plugin
|
xmlBlaster 2.2.0 API | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |