Package tigase.server.rtbl
Class RTBLIqModule<RCTX>
java.lang.Object
tigase.component.modules.AbstractModule
tigase.server.rtbl.RTBLIqModule<RCTX>
- All Implemented Interfaces:
Module
,Initializable
,UnregisterAware
- Direct Known Subclasses:
RTBLFetchModule
,RTBLSubscribeModule
public abstract class RTBLIqModule<RCTX>
extends AbstractModule
implements Initializable, UnregisterAware
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic class
static class
-
Field Summary
Fields inherited from class tigase.component.modules.AbstractModule
eventBus, log, writer
Fields inherited from interface tigase.component.modules.Module
EMPTY_FEATURES
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
Method called before bean unregister.Returns critera used by Component to select module to handle incoming stanza.protected JID
protected abstract void
handleResult
(RTBLIqModule.ResultEvent event, RCTX ctx) void
protected void
handleSuccess
(Iq iq) void
Method will be called, when bean will be created, configured and ready to use.void
Process incoming stanza.protected <T> void
sendIq
(BareJID to, StanzaType type, Consumer<Element> consumer, Supplier<RCTX> handleContextSupplier) Methods inherited from class tigase.component.modules.AbstractModule
fireEvent, getEventBus, getWriter, setEventBus, setWriter, write, write
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface tigase.component.modules.Module
canHandle, getFeatures
-
Constructor Details
-
RTBLIqModule
-
-
Method Details
-
getComponent
-
getModuleCriteria
Description copied from interface:Module
Returns critera used by Component to select module to handle incoming stanza.- Specified by:
getModuleCriteria
in interfaceModule
- Returns:
- criteria of selecting module.
-
initialize
public void initialize()Description copied from interface:Initializable
Method will be called, when bean will be created, configured and ready to use.- Specified by:
initialize
in interfaceInitializable
-
beforeUnregister
public void beforeUnregister()Description copied from interface:UnregisterAware
Method called before bean unregister.- Specified by:
beforeUnregister
in interfaceUnregisterAware
-
getOwnJID
-
sendIq
-
process
Description copied from interface:Module
Process incoming stanza.- Specified by:
process
in interfaceModule
- Parameters:
packet
- receivedstanza
.- Throws:
ComponentException
- if stanza can't be processed correctly. ComponentException is converted to error stanza and returned to stanza sender.TigaseStringprepException
- if there was an error during stringprep processing.
-
handleSuccess
-
handleResultEvent
-
handleResult
-