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
Nested ClassesModifier and TypeClassDescriptionstatic classstatic class -
Field Summary
Fields inherited from class tigase.component.modules.AbstractModule
eventBus, log, writerFields inherited from interface tigase.component.modules.Module
EMPTY_FEATURES -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidMethod called before bean unregister.Returns critera used by Component to select module to handle incoming stanza.protected JIDprotected abstract voidhandleResult(RTBLIqModule.ResultEvent event, RCTX ctx) voidprotected voidhandleSuccess(Iq iq) voidMethod will be called, when bean will be created, configured and ready to use.voidProcess incoming stanza.protected <T> voidsendIq(BareJID to, StanzaType type, Consumer<Element> consumer, Supplier<RCTX> handleContextSupplier) Methods inherited from class tigase.component.modules.AbstractModule
fireEvent, getEventBus, getWriter, setEventBus, setWriter, write, writeMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface tigase.component.modules.Module
canHandle, getFeatures
-
Constructor Details
-
RTBLIqModule
-
-
Method Details
-
getComponent
-
getModuleCriteria
Description copied from interface:ModuleReturns critera used by Component to select module to handle incoming stanza.- Specified by:
getModuleCriteriain interfaceModule- Returns:
- criteria of selecting module.
-
initialize
public void initialize()Description copied from interface:InitializableMethod will be called, when bean will be created, configured and ready to use.- Specified by:
initializein interfaceInitializable
-
beforeUnregister
public void beforeUnregister()Description copied from interface:UnregisterAwareMethod called before bean unregister.- Specified by:
beforeUnregisterin interfaceUnregisterAware
-
getOwnJID
-
sendIq
-
process
Description copied from interface:ModuleProcess incoming stanza.- Specified by:
processin 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
-