public interface Module
| Modifier and Type | Field and Description |
|---|---|
static String[] |
EMPTY_FEATURES |
| Modifier and Type | Method and Description |
|---|---|
default boolean |
canHandle(Packet packet)
Returns true if Packet can be procesed by module.
|
default String[] |
getFeatures()
Returns XMPP features offered by module.
|
Criteria |
getModuleCriteria()
Returns critera used by Component to select module to handle incoming stanza.
|
void |
process(Packet packet)
Process incoming stanza.
|
static final String[] EMPTY_FEATURES
default String[] getFeatures()
null.Criteria getModuleCriteria()
default boolean canHandle(Packet packet)
void process(Packet packet) throws ComponentException, TigaseStringprepException
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.Copyright © 2004–2019 "Tigase, Inc.". All rights reserved.