@Bean(name="unsubscribe", active=true) public class UnsubscribeModule extends AbstractEventBusModule implements Initializable, UnregisterAware
Modifier and Type | Field and Description |
---|---|
static String |
ID |
eventBus, log, writer
EMPTY_FEATURES
Constructor and Description |
---|
UnsubscribeModule() |
Modifier and Type | Method and Description |
---|---|
void |
beforeUnregister()
Method called before bean unregister.
|
String[] |
getFeatures()
Returns XMPP features offered by module.
|
Criteria |
getModuleCriteria()
Returns critera used by Component to select module to handle incoming stanza.
|
void |
initialize()
Method will be called, when bean will be created, configured and ready to use.
|
protected void |
onRemoveHandler(String eventPackage,
String eventName) |
void |
process(Packet packet)
Process incoming stanza.
|
protected void |
sendUnsubscribeRequest(String to,
Collection<Element> subscriptionElement) |
isClusteredEventBus, nextStanzaID
fireEvent, getEventBus, getWriter, setEventBus, setWriter, write, write
public static final String ID
public void beforeUnregister()
UnregisterAware
beforeUnregister
in interface UnregisterAware
public String[] getFeatures()
Module
getFeatures
in interface Module
null
.public Criteria getModuleCriteria()
Module
getModuleCriteria
in interface Module
public void initialize()
Initializable
initialize
in interface Initializable
public void process(Packet packet) throws ComponentException, TigaseStringprepException
Module
process
in interface 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)
Copyright © 2004–2019 "Tigase, Inc.". All rights reserved.