public class ChatStateExtension extends Object implements Extension, ContextAware, MessageModule.ChatClosedHandler, JaxmppCore.DisconnectedHandler
| Modifier and Type | Class and Description |
|---|---|
static interface |
ChatStateExtension.ChatStateChangedHandler |
MessageModule.ChatClosedHandler.ChatClosedEventJaxmppCore.DisconnectedHandler.DisconnectedEvent| Modifier and Type | Field and Description |
|---|---|
static String |
CHAT_STATE_DISABLED_KEY |
| Constructor and Description |
|---|
ChatStateExtension(AbstractChatManager chatManager) |
| Modifier and Type | Method and Description |
|---|---|
Element |
afterReceive(Element received) |
Element |
beforeSend(Element received) |
String[] |
getFeatures() |
ChatState |
getRecipientChatState(Chat chat) |
static boolean |
isDisabled(SessionObject sessionObject) |
void |
onChatClosed(SessionObject sessionObject,
Chat chat) |
void |
onDisconnected(SessionObject sessionObject)
Called when DisconnectedEvent is
fired.
|
void |
setContext(Context context) |
void |
setDisabled(boolean disabled) |
void |
setOwnChatState(Chat chat,
ChatState state) |
public static final String CHAT_STATE_DISABLED_KEY
public ChatStateExtension(AbstractChatManager chatManager)
public Element afterReceive(Element received) throws JaxmppException
afterReceive in interface ExtensionJaxmppExceptionpublic Element beforeSend(Element received) throws JaxmppException
beforeSend in interface ExtensionJaxmppExceptionpublic void setOwnChatState(Chat chat, ChatState state) throws JaxmppException
JaxmppExceptionpublic String[] getFeatures()
getFeatures in interface Extensionpublic void onDisconnected(SessionObject sessionObject)
JaxmppCore.DisconnectedHandleronDisconnected in interface JaxmppCore.DisconnectedHandlersessionObject - session object related to connection.public void onChatClosed(SessionObject sessionObject, Chat chat)
onChatClosed in interface MessageModule.ChatClosedHandlerpublic void setContext(Context context)
setContext in interface ContextAwarepublic void setDisabled(boolean disabled)
public static boolean isDisabled(SessionObject sessionObject)
Copyright © 2006–2015 Tigase. All rights reserved.