|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectlazyj.notifications.Message
public class Message
The messages are passed by the application through a Notifier, to be delivered by the implementations
of Sender specified in the configuration of the Notifier.
| Field Summary | |
|---|---|
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 Summary | |
|---|---|
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)
|
|
| Method Summary | |
|---|---|
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()
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
public java.lang.String sFrom
public java.util.Set<java.lang.String> sTo
public java.lang.String sSubject
public java.lang.String sMessage
| Constructor Detail |
|---|
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.| Method Detail |
|---|
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.Objectpublic static java.util.Set<java.lang.String> listToSet(java.lang.String s)
s -
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||