|
SAP NetWeaver '04 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object | +--com.sapportals.wcm.util.channels.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 com.sap.tc.logging.Location |
_log
log. |
protected static ResourceBundles |
_res
resource bundles. |
static java.lang.String |
ENCODING
encoding to use as default for messages. |
protected java.lang.String |
m_ID
The system id for this channel. |
protected java.util.Properties |
m_Properties
The properties for this channel. |
| Constructor Summary | |
protected |
AbstractChannel(java.lang.String id,
java.util.Properties properties)
Create a channel with a specific id from the given properties. |
| Method Summary | |
boolean |
equals(java.lang.Object object)
Checks if this channel is equal to a given channel. |
java.lang.String |
getDescription()
Get the displayable name. |
java.lang.String |
getDescription(java.util.Locale locale)
Get the displayable name for the given locale. |
javax.mail.internet.MimeMessage |
getEmptyMessage()
Get an empty mime message for this channel. |
java.lang.String |
getID()
Get the system id for this channel. |
abstract java.lang.String |
getRecipientAddress(IRecipient recipient)
Get the address for the specified recipient. |
abstract java.lang.String |
getType()
Get the type for this channel. |
void |
sendTo(java.lang.String[] addresses,
java.lang.String from,
javax.mail.internet.MimeMessage mimemessage)
Send a mime message via this channel. |
void |
sendTo(java.lang.String[] addresses,
java.lang.String from,
java.lang.String title,
java.lang.String messagetext,
java.lang.String type)
Send a message via this channel to the given addresses. |
void |
sendTo(java.lang.String[] addresses,
java.lang.String from,
java.lang.String title,
java.lang.String messagetext,
java.lang.String type,
java.lang.String encoding)
Send a message via this channel to the given addresses. |
abstract void |
sendTo(java.lang.String address,
java.lang.String from,
javax.mail.internet.MimeMessage mimemessage)
Send a mime message via this channel to the given recipient. |
abstract void |
sendTo(java.lang.String address,
java.lang.String from,
java.lang.String title,
java.lang.String messagetext,
java.lang.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 java.lang.String ENCODING
protected static com.sap.tc.logging.Location _log
protected static ResourceBundles _res
protected java.lang.String m_ID
protected java.util.Properties m_Properties
| Constructor Detail |
protected AbstractChannel(java.lang.String id,
java.util.Properties properties)
throws WcmException
id - TBD: Description of the incoming method parameterproperties - TBD: Description of the incoming method parameterWcmException - if the channel could not be created.| Method Detail |
public abstract java.lang.String getType()
getType in interface IChannelString is the channel's type (see ChannelFactory).public boolean equals(java.lang.Object object)
equals in class java.lang.Objectobject - TBD: Description of the incoming method parametertrue if both channels are equal; false if
not.public java.lang.String getID()
getID in interface IChannelString is the channel's id.public java.lang.String getDescription()
getDescription in interface IChannelString is the channel's name.public java.lang.String getDescription(java.util.Locale locale)
getDescription in interface IChannellocale - TBD: Description of the incoming method parameterString is the channel's name for the given locale.
public abstract java.lang.String getRecipientAddress(IRecipient recipient)
throws WcmException
getRecipientAddress in interface IChannelrecipient - TBD: Description of the incoming method parameterString is the address of the given recipient for this
channel.WcmException - if the recipient's address for this
channel can't be resolved.
public javax.mail.internet.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(java.lang.String address,
java.lang.String from,
java.lang.String title,
java.lang.String messagetext,
java.lang.String type)
throws WcmException
sendTo in interface IChanneladdress - TBD: Description of the incoming method parameterfrom - TBD: Description of the incoming method parametertitle - TBD: Description of the incoming method parametermessagetext - TBD: Description of the incoming method parametertype - TBD: Description of the incoming method parameterWcmException - Exception raised in failure situation
public void sendTo(java.lang.String[] addresses,
java.lang.String from,
java.lang.String title,
java.lang.String messagetext,
java.lang.String type)
throws WcmException
sendTo in interface IChanneladdresses - TBD: Description of the incoming method parameterfrom - TBD: Description of the incoming method parametertitle - TBD: Description of the incoming method parametermessagetext - TBD: Description of the incoming method parametertype - TBD: Description of the incoming method parameterWcmException - Exception raised in failure situation
public void sendTo(java.lang.String[] addresses,
java.lang.String from,
java.lang.String title,
java.lang.String messagetext,
java.lang.String type,
java.lang.String encoding)
throws WcmException
sendTo in interface IChanneladdresses - TBD: Description of the incoming method parameterfrom - TBD: Description of the incoming method parametertitle - TBD: Description of the incoming method parametermessagetext - TBD: Description of the incoming method parametertype - TBD: Description of the incoming method parameterencoding - TBD: Description of the incoming method parameterWcmException - Exception raised in failure situation
public abstract void sendTo(java.lang.String address,
java.lang.String from,
javax.mail.internet.MimeMessage mimemessage)
throws WcmException
sendTo in interface IChanneladdress - TBD: Description of the incoming method parameterfrom - TBD: Description of the incoming method parametermimemessage - TBD: Description of the incoming method parameterWcmException - Exception raised in failure situation
public void sendTo(java.lang.String[] addresses,
java.lang.String from,
javax.mail.internet.MimeMessage mimemessage)
throws WcmException
sendTo in interface IChanneladdresses - TBD: Description of the incoming method parameterfrom - TBD: Description of the incoming method parametermimemessage - TBD: Description of the incoming method parameterWcmException - Exception raised in failure situation
|
SAP NetWeaver '04 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||