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
Fields Modifier and Type Field Description static StringDEFAULT_RESOURCE
-
Constructor Summary
Constructors Constructor Description BambooSmackClient(InstantMessagingServerManager instantMessagingServerManager)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidafterPropertiesSet()voidconnect()voidconnect(@Nullable InstantMessagingServerDefinition instantMessagingServerDefinition)voiddisconnect()Map<String,String>getMessageContextForUser(String jabberAddress)voidputUserMessageContext(String jabberAddress, Map<String,String> context)voidsend(org.jivesoftware.smack.packet.Message message)voidsetMessageListener(org.jivesoftware.smack.StanzaListener messageListener)
-
-
-
Field Detail
-
DEFAULT_RESOURCE
public static final String DEFAULT_RESOURCE
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
BambooSmackClient
public BambooSmackClient(InstantMessagingServerManager instantMessagingServerManager)
-
-
Method Detail
-
afterPropertiesSet
public void afterPropertiesSet() throws Exception- Specified by:
afterPropertiesSetin 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.XMPPExceptionIOExceptionorg.jivesoftware.smack.SmackExceptionInterruptedException
-
connect
public void connect() throws org.jivesoftware.smack.XMPPException, IOException, org.jivesoftware.smack.SmackException, InterruptedException- Throws:
org.jivesoftware.smack.XMPPExceptionIOExceptionorg.jivesoftware.smack.SmackExceptionInterruptedException
-
disconnect
public void disconnect()
-
send
public void send(org.jivesoftware.smack.packet.Message message)
-
putUserMessageContext
public void putUserMessageContext(String jabberAddress, Map<String,String> context)
-
setMessageListener
public void setMessageListener(org.jivesoftware.smack.StanzaListener messageListener)
-
-