Package com.atlassian.bamboo.xmpp
Class SmackXmppMessageSender
java.lang.Object
com.atlassian.bamboo.xmpp.SmackXmppMessageSender
- All Implemented Interfaces:
ConvertibleFromConfig
,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
-
Method Summary
Modifier and TypeMethodDescriptionint
boolean
int
hashCode()
boolean
void
populateFromConfig
(@NotNull org.apache.commons.configuration.HierarchicalConfiguration config) Update the current object with data in theHierarchicalConfiguration
void
setGroupsToNotify
(List groupsToNotify) void
setIsRequired
(boolean isRequired) void
setRecipients
(String recipients) @NotNull org.apache.commons.configuration.HierarchicalConfiguration
Generate aHierarchicalConfiguration
from the current state of the objectvalidate()
Ensures the user has entered a xmpp configuration that we can authenticate against and connect to
-
Constructor Details
-
SmackXmppMessageSender
public SmackXmppMessageSender()
-
-
Method Details
-
setIsRequired
public void setIsRequired(boolean isRequired) - Specified by:
setIsRequired
in interfaceXmppMessageSender
-
isRequired
public boolean isRequired()- Specified by:
isRequired
in interfaceXmppMessageSender
-
getRecipients
- Specified by:
getRecipients
in interfaceXmppMessageSender
-
setRecipients
- Specified by:
setRecipients
in interfaceXmppMessageSender
-
validate
Ensures the user has entered a xmpp configuration that we can authenticate against and connect to- Specified by:
validate
in 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:ConvertibleFromConfig
Update the current object with data in theHierarchicalConfiguration
- Specified by:
populateFromConfig
in interfaceConvertibleFromConfig
-
toConfiguration
@NotNull public @NotNull org.apache.commons.configuration.HierarchicalConfiguration toConfiguration()Description copied from interface:ConvertibleFromConfig
Generate aHierarchicalConfiguration
from the current state of the object- Specified by:
toConfiguration
in interfaceConvertibleFromConfig
- Returns:
- Always returns an
HierarchicalConfiguration
. Never null
-
getGroupsToNotify
- Specified by:
getGroupsToNotify
in interfaceXmppMessageSender
-
setGroupsToNotify
- Specified by:
setGroupsToNotify
in interfaceXmppMessageSender
-
hashCode
public int hashCode() -
equals
-
compareTo
-