|
SAP NetWeaver '04 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
A channel is the abstraction of an transport mechanism for sending messages
to recipients.
A message can be a simple String or an internet
MimeMessage . A recipient can be something like an user or a
distribution list.
ChannelFactory,
IRecipient,
MimeMessage| Method Summary | |
java.lang.String |
getDescription()
Get the channel's displayable name. |
java.lang.String |
getDescription(java.util.Locale locale)
Get the channel's displayable name for a specific locale. |
javax.mail.internet.MimeMessage |
getEmptyMessage()
Get an empty internet mime message. |
java.lang.String |
getID()
Get the channel's unique system id. |
java.lang.String |
getRecipientAddress(IRecipient recipient)
Get the given recipient's channel address in the channel's specific format. |
java.lang.String |
getType()
Get the channel's type. |
void |
sendTo(java.lang.String[] to,
java.lang.String from,
javax.mail.internet.MimeMessage mimemessage)
Send a mime message via this channel to the given addresses. |
void |
sendTo(java.lang.String[] to,
java.lang.String from,
java.lang.String title,
java.lang.String messagetext,
java.lang.String type)
Send a message text via this channel to the given addresses. |
void |
sendTo(java.lang.String[] to,
java.lang.String from,
java.lang.String title,
java.lang.String messagetext,
java.lang.String type,
java.lang.String encoding)
Send a message text via this channel to the given addresses. |
void |
sendTo(java.lang.String to,
java.lang.String from,
javax.mail.internet.MimeMessage mimemessage)
Send a mime message via this channel to the given address. |
void |
sendTo(java.lang.String to,
java.lang.String from,
java.lang.String title,
java.lang.String messagetext,
java.lang.String type)
Send a message text via this channel to the given address. |
void |
sendTo(java.lang.String to,
java.lang.String from,
java.lang.String title,
java.lang.String messagetext,
java.lang.String type,
java.lang.String encoding)
Send a message text via this channel to the given address. |
| Method Detail |
public java.lang.String getType()
String with the channel's type, for example
EMAIL .ChannelFactorypublic java.lang.String getID()
String with the channel's system id.public java.lang.String getDescription()
String with the channel's displayable name.public java.lang.String getDescription(java.util.Locale locale)
locale - a Locale defining the language to get the name
for.String with the channel's displayable name in the
given locale.
public java.lang.String getRecipientAddress(IRecipient recipient)
throws WcmException
recipient - an IRecipient to get the channel's address
for.String with the address of the given recipient in
the channel's specific format; null if the given
recipient has no address for this channel. - WcmException if there was an error while resolving
the recipient's address for this channel.
public javax.mail.internet.MimeMessage getEmptyMessage()
throws WcmException
MimeMessage (see
javax.mail.internet.MimeMessage ). - WcmException if there was an error while creating the
mime message.
public void sendTo(java.lang.String to,
java.lang.String from,
java.lang.String title,
java.lang.String messagetext,
java.lang.String type)
throws WcmException
to - a String with the address of the receiver in the
channel's specific format.from - a String with the address of the sender in the
channel's specific format.title - a String with the title for the message.messagetext - a String with the content of the message to
send.type - a String with the mimetype of message, for example
text/plain . - WcmException if there was an error while sending the
message.PartialSendException - if the message was sent only
parially (to some recipients).
public void sendTo(java.lang.String to,
java.lang.String from,
java.lang.String title,
java.lang.String messagetext,
java.lang.String type,
java.lang.String encoding)
throws WcmException
to - a String with the address of the receiver in the
channel's specific format.from - a String with the address of the sender in the
channel's specific format.title - a String with the title for the message.messagetext - a String with the content of the message to
send.type - a String with the mimetype of message, for example
text/plain .encoding - a String with the encoding for the message - WcmException if there was an error while sending the
message.PartialSendException - if the message was sent only
parially (to some recipients).
public void sendTo(java.lang.String[] to,
java.lang.String from,
java.lang.String title,
java.lang.String messagetext,
java.lang.String type)
throws WcmException
to - an array of Strings with the addresses of the
receivers in the channel's specific format.from - a String with the address of the sender in the
channel's specific format.title - a String with the title for the message.messagetext - a String with the content of the message to
send.type - a String with the mimetype of message, for example
text/plain .- Throws:
- WcmException if there was an error while sending the
message.PartialSendException - if the message was sent only
parially (to some recipients).
public void sendTo(java.lang.String[] to,
java.lang.String from,
java.lang.String title,
java.lang.String messagetext,
java.lang.String type,
java.lang.String encoding)
throws WcmException
to - an array of Strings with the addresses of the
receivers in the channel's specific format.from - a String with the address of the sender in the
channel's specific format.title - a String with the title for the message.messagetext - a String with the content of the message to
send.type - a String with the mimetype of message, for example
text/plain .encoding - a String with the encoding for this message- Throws:
- WcmException if there was an error while sending the
message.PartialSendException - if the message was sent only
parially (to some recipients).
public void sendTo(java.lang.String to,
java.lang.String from,
javax.mail.internet.MimeMessage mimemessage)
throws WcmException
to - a String with the address of the receiver in the
channel's specific format.from - a String with the address of the sender in the
channel's specific format.mimemessage - an internet MimeMessage with the content of
the message to send (see javax.mail.internet.MimeMessage ). - WcmException if there was an error while sending the
message.PartialSendException - if the message was sent only
parially (to some recipients).
public void sendTo(java.lang.String[] to,
java.lang.String from,
javax.mail.internet.MimeMessage mimemessage)
throws WcmException
to - an array of String s with the addresses of the
receivers in the channel's specific format.from - a String with the address of the sender in the
channel's specific format.mimemessage - an internet MimeMessage with the content of
the message to send (see javax.mail.internet.MimeMessage ). - WcmException if there was an error while sending the
message.PartialSendException - if the message was sent only
parially (to some recipients).
|
SAP NetWeaver '04 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||