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(@Nullable 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.InitializingBean
Exception
public void connect(@Nullable @Nullable InstantMessagingServerDefinition instantMessagingServerDefinition) throws org.jivesoftware.smack.XMPPException, IOException, org.jivesoftware.smack.SmackException, InterruptedException
org.jivesoftware.smack.XMPPException
IOException
org.jivesoftware.smack.SmackException
InterruptedException
public void connect() throws org.jivesoftware.smack.XMPPException, IOException, org.jivesoftware.smack.SmackException, InterruptedException
org.jivesoftware.smack.XMPPException
IOException
org.jivesoftware.smack.SmackException
InterruptedException
public 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 © 2022 Atlassian Software Systems Pty Ltd. All rights reserved.