Modifier and Type | Field and Description |
---|---|
java.lang.String |
sFrom
Sender of this message.
|
java.lang.String |
sMessage
Message to be sent.
|
java.lang.String |
sSubject
Subject / short version of the message
|
java.util.Set<java.lang.String> |
sTo
Recipients of this message.
|
Constructor and Description |
---|
Message(java.lang.String from,
java.util.Collection<java.lang.String> to,
java.lang.String subject,
java.lang.String message) |
Message(java.lang.String from,
java.lang.String to,
java.lang.String subject,
java.lang.String message) |
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getToAsList()
Get the list of recipients as a comma-separated string.
|
static java.util.Set<java.lang.String> |
listToSet(java.lang.String s)
Split a comma-separated list into a set of distinct names
|
static java.lang.String |
setToList(java.util.Set<java.lang.String> set)
Convert a set of strings into a comma-separated string
|
java.lang.String |
toString() |
public java.lang.String sFrom
public java.util.Set<java.lang.String> sTo
public java.lang.String sSubject
public java.lang.String sMessage
public Message(java.lang.String from, java.lang.String to, java.lang.String subject, java.lang.String message)
from
- Sender of this message. Can be null if a default sender is defined in the Notifier.to
- Recipient of this message. Can be null if a default set of recipients is defined in the Notifier.subject
- Subject / short version of the message.message
- Message to be sent.public Message(java.lang.String from, java.util.Collection<java.lang.String> to, java.lang.String subject, java.lang.String message)
from
- Sender of this message. Can be null if a default sender is defined in the Notifier.to
- Recipients of this message. Any default recipients from the Notifier will be added to this set.subject
- Subject / short version of the message.message
- Message to be sent.public java.lang.String getToAsList()
public static java.lang.String setToList(java.util.Set<java.lang.String> set)
set
- public java.lang.String toString()
toString
in class java.lang.Object
public static java.util.Set<java.lang.String> listToSet(java.lang.String s)
s
-