public class BambooSmackClient extends Object implements org.springframework.beans.factory.InitializingBean
| Modifier and Type | Field and Description |
|---|---|
static String |
DEFAULT_RESOURCE |
| Constructor and Description |
|---|
BambooSmackClient(InstantMessagingServerManager instantMessagingServerManager) |
| Modifier and Type | Method and Description |
|---|---|
void |
afterPropertiesSet() |
void |
connect() |
void |
connect(InstantMessagingServerDefinition instantMessagingServerDefinition) |
void |
disconnect() |
Map<String,String> |
getMessageContextForUser(String jabberAddress) |
void |
putUserMessageContext(String jabberAddress,
Map<String,String> context) |
void |
send(org.jivesoftware.smack.packet.Message message) |
void |
setMessageListener(org.jivesoftware.smack.StanzaListener messageListener) |
public static final String DEFAULT_RESOURCE
public BambooSmackClient(InstantMessagingServerManager instantMessagingServerManager)
public void afterPropertiesSet()
throws Exception
afterPropertiesSet in interface org.springframework.beans.factory.InitializingBeanExceptionpublic void connect(@Nullable
InstantMessagingServerDefinition instantMessagingServerDefinition)
throws org.jivesoftware.smack.XMPPException,
IOException,
org.jivesoftware.smack.SmackException
org.jivesoftware.smack.XMPPExceptionIOExceptionorg.jivesoftware.smack.SmackExceptionpublic void connect()
throws org.jivesoftware.smack.XMPPException,
IOException,
org.jivesoftware.smack.SmackException
org.jivesoftware.smack.XMPPExceptionIOExceptionorg.jivesoftware.smack.SmackExceptionpublic void disconnect()
public void send(org.jivesoftware.smack.packet.Message message)
public void putUserMessageContext(String jabberAddress, Map<String,String> context)
public void setMessageListener(org.jivesoftware.smack.StanzaListener messageListener)
Copyright © 2019 Atlassian Software Systems Pty Ltd. All rights reserved.