public class AdHocCommandMonitorModule extends AdHocCommandModule<MonitorContext>
AdHocCommandModule.ScriptCommandProcessor
COMMAND_PATH, commandsManager, CRIT, ID, scriptProcessor, XMLNS
context, log
Constructor and Description |
---|
AdHocCommandMonitorModule(AdHocCommandModule.ScriptCommandProcessor scriptProcessor) |
Modifier and Type | Method and Description |
---|---|
void |
afterRegistration()
Called after registration.
|
void |
process(Packet packet)
Process incoming stanza.
|
getCommandListItems, getFeatures, getModuleCriteria, getScriptItems, processScriptAdHoc, register
beforeRegister, fireEvent, setContext, unregisterModule, write, write
public AdHocCommandMonitorModule(AdHocCommandModule.ScriptCommandProcessor scriptProcessor)
public void afterRegistration()
InitializingModule
afterRegistration
in interface InitializingModule
afterRegistration
in class AbstractModule<MonitorContext>
public void process(Packet packet) throws ComponentException
Module
process
in interface Module
process
in class AdHocCommandModule<MonitorContext>
packet
- received stanza
.ComponentException
- if stanza can't be processed correctly. ComponentException is
converted to error stanza and returned to stanza sender.Copyright © 2017 "Tigase, Inc.". All rights reserved.