Package com.atlassian.bamboo.xmpp
Class SmackXmppMessageSender
- java.lang.Object
-
- com.atlassian.bamboo.xmpp.SmackXmppMessageSender
-
- All Implemented Interfaces:
ConvertibleFromConfig,XmppMessageSender
public class SmackXmppMessageSender extends Object implements XmppMessageSender
Uses Smack to send an Instant Message to a XMPP compliant server
-
-
Field Summary
-
Fields inherited from interface com.atlassian.bamboo.xmpp.XmppMessageSender
XMPP_GROUPS, XMPP_RECIPIENTS, XMPP_REQUIRED
-
-
Constructor Summary
Constructors Constructor Description SmackXmppMessageSender()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description intcompareTo(Object obj)booleanequals(Object o)ListgetGroupsToNotify()StringgetRecipients()inthashCode()booleanisRequired()voidpopulateFromConfig(@NotNull org.apache.commons.configuration.HierarchicalConfiguration config)Update the current object with data in theHierarchicalConfigurationvoidsetGroupsToNotify(List groupsToNotify)voidsetIsRequired(boolean isRequired)voidsetRecipients(String recipients)@NotNull org.apache.commons.configuration.HierarchicalConfigurationtoConfiguration()Generate aHierarchicalConfigurationfrom the current state of the objectErrorCollectionvalidate()Ensures the user has entered a xmpp configuration that we can authenticate against and connect to
-
-
-
Method Detail
-
setIsRequired
public void setIsRequired(boolean isRequired)
- Specified by:
setIsRequiredin interfaceXmppMessageSender
-
isRequired
public boolean isRequired()
- Specified by:
isRequiredin interfaceXmppMessageSender
-
getRecipients
public String getRecipients()
- Specified by:
getRecipientsin interfaceXmppMessageSender
-
setRecipients
public void setRecipients(String recipients)
- Specified by:
setRecipientsin interfaceXmppMessageSender
-
validate
public ErrorCollection validate()
Ensures the user has entered a xmpp configuration that we can authenticate against and connect to- Specified by:
validatein interfaceXmppMessageSender- Returns:
- The validation errors. An empty list of there are no errors
-
populateFromConfig
public void populateFromConfig(@NotNull @NotNull org.apache.commons.configuration.HierarchicalConfiguration config)Description copied from interface:ConvertibleFromConfigUpdate the current object with data in theHierarchicalConfiguration- Specified by:
populateFromConfigin interfaceConvertibleFromConfig
-
toConfiguration
@NotNull public @NotNull org.apache.commons.configuration.HierarchicalConfiguration toConfiguration()
Description copied from interface:ConvertibleFromConfigGenerate aHierarchicalConfigurationfrom the current state of the object- Specified by:
toConfigurationin interfaceConvertibleFromConfig- Returns:
- Always returns an
HierarchicalConfiguration. Never null
-
getGroupsToNotify
public List getGroupsToNotify()
- Specified by:
getGroupsToNotifyin interfaceXmppMessageSender
-
setGroupsToNotify
public void setGroupsToNotify(List groupsToNotify)
- Specified by:
setGroupsToNotifyin interfaceXmppMessageSender
-
compareTo
public int compareTo(Object obj)
-
-