|
SAP NetWeaver 7.40 SP 07 KMC | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.sapportals.wcm.util.channels.AbstractChannel
public abstract class AbstractChannel
Base class for IChannel -implementations.
The AbstractChannel implements some generic behavior for loading
configuration data and retrieving a standard channel description from the
channel's type.
IChannel| Field Summary | |
|---|---|
protected static Location |
_log
log. |
protected static ResourceBundles |
_res
resource bundles. |
static String |
ENCODING
encoding to use as default for messages. |
protected String |
m_ID
The system id for this channel. |
protected Properties |
m_Properties
The properties for this channel. |
| Constructor Summary | |
|---|---|
protected |
AbstractChannel(String id,
Properties properties)
Create a channel with a specific id from the given properties. |
| Method Summary | |
|---|---|
boolean |
equals(Object object)
Checks if this channel is equal to a given channel. |
String |
getDescription()
Get the displayable name. |
String |
getDescription(Locale locale)
Get the displayable name for the given locale. |
MimeMessage |
getEmptyMessage()
Get an empty mime message for this channel. |
String |
getID()
Get the system id for this channel. |
abstract String |
getRecipientAddress(IRecipient recipient)
Get the address for the specified recipient. |
abstract String |
getType()
Get the type for this channel. |
void |
sendTo(String[] addresses,
String from,
MimeMessage mimemessage)
Send a mime message via this channel. |
void |
sendTo(String[] addresses,
String from,
String title,
String messagetext,
String type)
Send a message via this channel to the given addresses. |
void |
sendTo(String[] addresses,
String from,
String title,
String messagetext,
String type,
String encoding)
Send a message via this channel to the given addresses. |
abstract void |
sendTo(String address,
String from,
MimeMessage mimemessage)
Send a mime message via this channel to the given recipient. |
abstract void |
sendTo(String address,
String from,
String title,
String messagetext,
String type)
Send a message via this channel to the given address. |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface com.sapportals.wcm.util.channels.IChannel |
|---|
sendTo |
| Field Detail |
|---|
public static final String ENCODING
protected static Location _log
protected static ResourceBundles _res
protected String m_ID
protected Properties m_Properties
| Constructor Detail |
|---|
protected AbstractChannel(String id,
Properties properties)
throws WcmException
id - a String with the system id for this channel.properties - a Properties with the properties for this channel.
WcmException - if the channel could not be created.| Method Detail |
|---|
public abstract String getType()
getType in interface IChannelString is the channel's type (see ChannelFactory).ChannelFactorypublic boolean equals(Object object)
equals in class Objectobject - The object to compare this AbstractChannel against
true if both channels are equal; false if
not.public String getID()
getID in interface IChannelString is the channel's id.public String getDescription()
getDescription in interface IChannelString is the channel's name.public String getDescription(Locale locale)
getDescription in interface IChannellocale - a Locale to get the localized description of this channel.
String is the channel's name for the given locale.
public abstract String getRecipientAddress(IRecipient recipient)
throws WcmException
getRecipientAddress in interface IChannelrecipient - a IRecipient to find the address of.
String is the address of the given recipient for this
channel.
WcmException - if the recipient's address for this
channel can't be resolved.
public MimeMessage getEmptyMessage()
throws WcmException
getEmptyMessage in interface IChannelMimeMessage for this channel.
WcmException - if there was an error while creating the
mime message.
public abstract void sendTo(String address,
String from,
String title,
String messagetext,
String type)
throws WcmException
sendTo in interface IChanneladdress - a String with the address of the recipient.from - a String with the sender's address in the proper
format for the channel.title - a String with the title for the message.messagetext - a String with the message text to send.type - a String with the type of message, for example
text/plain .
WcmException - Exception raised in failure situation
public void sendTo(String[] addresses,
String from,
String title,
String messagetext,
String type)
throws WcmException
sendTo in interface IChanneladdresses - an array of String addresses of the recipients.from - a String with the sender's address in the proper
format for the channel.title - a String with the title for the message.messagetext - a String with the message text to send.type - a String with the type of message, for example
text/plain .
WcmException - Exception raised in failure situation
public void sendTo(String[] addresses,
String from,
String title,
String messagetext,
String type,
String encoding)
throws WcmException
sendTo in interface IChanneladdresses - an array of String addresses of the recipients.from - a String with the sender's address in the proper
format for the channel.title - a String with the title for the message.messagetext - a String with the message text to send.type - a String with the type of message, for example
text/plain .encoding - a String with the encoding to use for the message.
WcmException - Exception raised in failure situation
public abstract void sendTo(String address,
String from,
MimeMessage mimemessage)
throws WcmException
sendTo in interface IChanneladdress - a String with the address of the recipient.from - a String with the address of the recipient.mimemessage - a MimeMessage with the mime message to send.
WcmException - Exception raised in failure situation
public void sendTo(String[] addresses,
String from,
MimeMessage mimemessage)
throws WcmException
sendTo in interface IChanneladdresses - an array of String addresses of the recipients.from - a String with the address of the recipient.mimemessage - a MimeMessage with the mime message to send.
WcmException - Exception raised in failure situation| Access Rights |
|---|
| SC | DC | Public Part | ACH |
|---|---|---|---|
[sap.com] KMC-CM
|
[sap.com] tc/km/frwk
|
api
|
EP-KM-CM
|
[sap.com] KMC-WPC
|
[sap.com] tc/kmc/wpc/wpcfacade
|
api
|
EP-PIN-WPC-WCM
|
|
SAP NetWeaver 7.40 SP 07 KMC | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||