Package com.atlassian.bamboo.xmpp
Class BambooSmackClient
java.lang.Object
com.atlassian.bamboo.xmpp.BambooSmackClient
- All Implemented Interfaces:
org.springframework.beans.factory.InitializingBean
public class BambooSmackClient
extends Object
implements org.springframework.beans.factory.InitializingBean
-
Field Summary
-
Constructor Summary
ConstructorDescriptionBambooSmackClient
(InstantMessagingServerManager instantMessagingServerManager) -
Method Summary
Modifier and TypeMethodDescriptionvoid
void
connect()
void
connect
(@Nullable InstantMessagingServerDefinition instantMessagingServerDefinition) void
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)
-
Field Details
-
DEFAULT_RESOURCE
- See Also:
-
-
Constructor Details
-
BambooSmackClient
-
-
Method Details
-
afterPropertiesSet
- Specified by:
afterPropertiesSet
in interfaceorg.springframework.beans.factory.InitializingBean
- Throws:
Exception
-
connect
public void connect(@Nullable @Nullable InstantMessagingServerDefinition instantMessagingServerDefinition) throws org.jivesoftware.smack.XMPPException, IOException, org.jivesoftware.smack.SmackException, InterruptedException - Throws:
org.jivesoftware.smack.XMPPException
IOException
org.jivesoftware.smack.SmackException
InterruptedException
-
connect
public void connect() throws org.jivesoftware.smack.XMPPException, IOException, org.jivesoftware.smack.SmackException, InterruptedException- Throws:
org.jivesoftware.smack.XMPPException
IOException
org.jivesoftware.smack.SmackException
InterruptedException
-
disconnect
public void disconnect() -
send
public void send(org.jivesoftware.smack.packet.Message message) -
getMessageContextForUser
-
putUserMessageContext
-
setMessageListener
public void setMessageListener(org.jivesoftware.smack.StanzaListener messageListener)
-