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 int
compareTo(Object obj)
boolean
equals(Object o)
List
getGroupsToNotify()
String
getRecipients()
int
hashCode()
boolean
isRequired()
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
toConfiguration()
Generate aHierarchicalConfiguration
from the current state of the objectErrorCollection
validate()
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:
setIsRequired
in interfaceXmppMessageSender
-
isRequired
public boolean isRequired()
- Specified by:
isRequired
in interfaceXmppMessageSender
-
getRecipients
public String getRecipients()
- Specified by:
getRecipients
in interfaceXmppMessageSender
-
setRecipients
public void setRecipients(String recipients)
- Specified by:
setRecipients
in interfaceXmppMessageSender
-
validate
public ErrorCollection 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
public List getGroupsToNotify()
- Specified by:
getGroupsToNotify
in interfaceXmppMessageSender
-
setGroupsToNotify
public void setGroupsToNotify(List groupsToNotify)
- Specified by:
setGroupsToNotify
in interfaceXmppMessageSender
-
compareTo
public int compareTo(Object obj)
-
-