public class MessageModule extends AbstractStanzaModule<Message>
ChatClosed : MessageEvent ()ChatCreated :
MessageEvent ()ChatUpdated :
MessageEvent ()MessageReceived :
MessageEvent ()| Modifier and Type | Class and Description |
|---|---|
static class |
MessageModule.AbstractMessageEvent |
static class |
MessageModule.MessageEvent |
| Modifier and Type | Field and Description |
|---|---|
static EventType |
ChatClosed |
static EventType |
ChatCreated |
static EventType |
ChatStateChanged |
static EventType |
ChatUpdated |
static EventType |
MessageReceived |
static EventType |
ReceiptReceivedMessage |
static String |
RECEIPTS_XMLNS |
log, observable, sessionObject, writer| Constructor and Description |
|---|
MessageModule(Observable parentObservable,
SessionObject sessionObject,
PacketWriter packetWriter) |
| Modifier and Type | Method and Description |
|---|---|
void |
close(Chat chat)
Destroy chat object.
|
Chat |
createChat(JID jid)
Creates new chat object.
|
AbstractChatManager |
getChatManager() |
List<Chat> |
getChats()
Returns all chat objects.
|
Criteria |
getCriteria()
Criteria
|
String[] |
getFeatures()
Returns features what are implemented by Module.
|
void |
process(Message element)
Method for processing incoming stanza.
|
void |
sendMessage(JID toJID,
String subject,
String message)
Sends message.
|
boolean |
setChatStateDisabled(boolean value) |
addListener, addListener, getFirstChild, process, removeAllListeners, removeListener, removeListenerpublic static final EventType ChatClosed
public static final EventType ChatCreated
public static final EventType ChatStateChanged
public static final EventType ChatUpdated
public static final EventType MessageReceived
public static final EventType ReceiptReceivedMessage
public static final String RECEIPTS_XMLNS
public MessageModule(Observable parentObservable, SessionObject sessionObject, PacketWriter packetWriter)
public void close(Chat chat) throws JaxmppException
chat - chat objectJaxmppExceptionpublic Chat createChat(JID jid) throws JaxmppException
jid - destination JIDJaxmppExceptionpublic AbstractChatManager getChatManager()
public Criteria getCriteria()
public String[] getFeatures()
Returns features what are implemented by Module.
public void process(Message element) throws JaxmppException
process in class AbstractStanzaModule<Message>JaxmppExceptionpublic void sendMessage(JID toJID, String subject, String message) throws XMLException, JaxmppException
toJID - recipient's JIDsubject - subject of messagemessage - messageXMLExceptionJaxmppExceptionpublic boolean setChatStateDisabled(boolean value)
Copyright © 2006–2014 Tigase. All rights reserved.