com.atlassian.bamboo.xmpp
Class SmackXmppMessageSender
java.lang.Object
com.atlassian.bamboo.xmpp.SmackXmppMessageSender
- All Implemented Interfaces:
- ConvertibleFromConfig, XmppMessageSender
public class SmackXmppMessageSender
- extends java.lang.Object
- implements XmppMessageSender
Uses Smack to send an Instant Message to a XMPP compient server
Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
SmackXmppMessageSender
public SmackXmppMessageSender()
setIsRequired
public void setIsRequired(boolean isRequired)
- Specified by:
setIsRequired
in interface XmppMessageSender
isRequired
public boolean isRequired()
- Specified by:
isRequired
in interface XmppMessageSender
getRecipients
public java.lang.String getRecipients()
- Specified by:
getRecipients
in interface XmppMessageSender
setRecipients
public void setRecipients(java.lang.String recipients)
- Specified by:
setRecipients
in interface XmppMessageSender
validate
public ErrorCollection validate()
- Ensures the user has entered a xmpp configuration that we can authenticate against and connect to
- Specified by:
validate
in interface XmppMessageSender
- Returns:
- The validation errors. An empty list of there are no errors
populateFromConfig
public void populateFromConfig(@NotNull
org.apache.commons.configuration.HierarchicalConfiguration config)
- Description copied from interface:
ConvertibleFromConfig
- Update the current object with data in the
HierarchicalConfiguration
- Specified by:
populateFromConfig
in interface ConvertibleFromConfig
toConfiguration
@NotNull
public org.apache.commons.configuration.HierarchicalConfiguration toConfiguration()
- Description copied from interface:
ConvertibleFromConfig
- Generate a
HierarchicalConfiguration
from the current state of the object
- Specified by:
toConfiguration
in interface ConvertibleFromConfig
- Returns:
- Always returns an
HierarchicalConfiguration
. Never null
getGroupsToNotify
public java.util.List getGroupsToNotify()
- Specified by:
getGroupsToNotify
in interface XmppMessageSender
setGroupsToNotify
public void setGroupsToNotify(java.util.List groupsToNotify)
- Specified by:
setGroupsToNotify
in interface XmppMessageSender
hashCode
public int hashCode()
- Overrides:
hashCode
in class java.lang.Object
equals
public boolean equals(java.lang.Object o)
- Overrides:
equals
in class java.lang.Object
compareTo
public int compareTo(java.lang.Object obj)
Copyright © 2011 Atlassian. All Rights Reserved.