public class UnsubscribeModule extends AbstractEventBusModule
Modifier and Type | Field and Description |
---|---|
static String |
ID |
context, log
Constructor and Description |
---|
UnsubscribeModule() |
Modifier and Type | Method and Description |
---|---|
void |
afterRegistration()
Called after registration.
|
String[] |
getFeatures()
Returns XMPP features offered by module.
|
Criteria |
getModuleCriteria()
Returns critera used by Component to select module to handle incoming
stanza.
|
protected void |
onRemoveHandler(String eventName,
String eventXmlns) |
void |
process(Packet packet)
Process incoming stanza.
|
protected void |
sendUnsubscribeRequest(String to,
Collection<Element> subscriptionElement) |
void |
unregisterModule()
Called before module is unregistered.
|
isClusteredEventBus, nextStanzaID
beforeRegister, fireEvent, setContext, write, write
public static final String ID
public void afterRegistration()
InitializingModule
afterRegistration
in interface InitializingModule
afterRegistration
in class AbstractModule<EventBusContext>
public String[] getFeatures()
Module
null
.public Criteria getModuleCriteria()
Module
public void process(Packet packet) throws ComponentException, TigaseStringprepException
Module
packet
- received stanza
.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.protected void sendUnsubscribeRequest(String to, Collection<Element> subscriptionElement)
public void unregisterModule()
InitializingModule
unregisterModule
in interface InitializingModule
unregisterModule
in class AbstractModule<EventBusContext>
Copyright © 2019 "Tigase, Inc.". All rights reserved.