com.atlassian.bamboo.xmpp
Class SmackXmppMessageSender

java.lang.Object
  extended by 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


Field Summary
 
Fields inherited from interface com.atlassian.bamboo.xmpp.XmppMessageSender
XMPP_GROUPS, XMPP_RECIPIENTS, XMPP_REQUIRED
 
Constructor Summary
SmackXmppMessageSender()
           
 
Method Summary
 int compareTo(java.lang.Object obj)
           
 boolean equals(java.lang.Object o)
           
 java.util.List getGroupsToNotify()
           
 java.lang.String getRecipients()
           
 int hashCode()
           
 boolean isRequired()
           
 void populateFromConfig(org.apache.commons.configuration.HierarchicalConfiguration config)
          Update the current object with data in the HierarchicalConfiguration
 void setGroupsToNotify(java.util.List groupsToNotify)
           
 void setIsRequired(boolean isRequired)
           
 void setRecipients(java.lang.String recipients)
           
 org.apache.commons.configuration.HierarchicalConfiguration toConfiguration()
          Generate a HierarchicalConfiguration from the current state of the object
 ErrorCollection validate()
          Ensures the user has entered a xmpp configuration that we can authenticate against and connect to
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SmackXmppMessageSender

public SmackXmppMessageSender()
Method Detail

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.