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 String
DEFAULT_RESOURCE
-
Constructor Summary
Constructors Constructor Description BambooSmackClient(InstantMessagingServerManager instantMessagingServerManager)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method 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)
-
-
-
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:
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)
-
putUserMessageContext
public void putUserMessageContext(String jabberAddress, Map<String,String> context)
-
setMessageListener
public void setMessageListener(org.jivesoftware.smack.StanzaListener messageListener)
-
-