public class MessageCarbonsModule extends AbstractStanzaExtendableModule<Message>
Modifier and Type | Class and Description |
---|---|
static class |
MessageCarbonsModule.CarbonEventType |
static interface |
MessageCarbonsModule.CarbonReceivedHandler |
Modifier and Type | Field and Description |
---|---|
static String |
XMLNS_MC
XMLNS of Message
Carbons.
|
context, log
Constructor and Description |
---|
MessageCarbonsModule() |
Modifier and Type | Method and Description |
---|---|
void |
beforeRegister()
Called just before registration module in XmppModulesManager
.
|
void |
disable(AsyncCallback callback)
Disable carbons.
|
void |
enable(AsyncCallback callback)
Enable carbons.
|
Criteria |
getCriteria()
Criteria
|
String[] |
getFeatures()
Returns features what are implemented by Module.
|
void |
process(Message message)
Method for processing incoming stanza.
|
protected void |
processReceivedCarbon(Message message,
Element carb) |
protected void |
processSentCarbon(Message message,
Element carb) |
addExtension, getExtensionChain, getFeaturesWithExtensions, removeExtension, write, write, write
afterRegister, beforeUnregister, fireEvent, getFirstChild, process, setContext
public static final String XMLNS_MC
public MessageCarbonsModule() throws JaxmppException
JaxmppException
public void beforeRegister()
InitializingModule
beforeRegister
in interface InitializingModule
beforeRegister
in class AbstractStanzaModule<Message>
public void disable(AsyncCallback callback) throws JaxmppException
callback
- callbackJaxmppException
public void enable(AsyncCallback callback) throws JaxmppException
callback
- callbackJaxmppException
public Criteria getCriteria()
XmppModule
public String[] getFeatures()
XmppModule
Returns features what are implemented by Module.
public void process(Message message) throws JaxmppException
AbstractStanzaModule
process
in class AbstractStanzaModule<Message>
message
- incoming stanzaJaxmppException
protected void processReceivedCarbon(Message message, Element carb) throws JaxmppException
JaxmppException
protected void processSentCarbon(Message message, Element carb) throws JaxmppException
JaxmppException
Copyright © 2006–2023 Tigase. All rights reserved.