***  This interface provides Binary Compatibility only, not Source Compatibility  ***

com.sas.services.publish.alerts
Interface AlertTransportInterface

All Known Subinterfaces:
DAVAlertTransportInterface, MailAlertTransportInterface

public interface AlertTransportInterface

The AlertTransportInterface provides common behavior for delivery transports when sending alert notification messages. An alert delivery transport is a method of delivering an alert notification. How the notification is delivered is transport-specific.

Since:
1.1.4

Method Summary
 LoggerInterface getLogger()
          Deprecated. The Logging Service has been deprecated. Use Log4J directly instead of calling this method to get the Logging Service logger.
 void send(TemplateInterface template)
          Send the alert notification.
 void setLogger(LoggerInterface logger)
          Deprecated. The Logging Service has been deprecated. Use Log4J directly instead of calling this method to get the Logging Service logger.
 

Method Detail

send

void send(TemplateInterface template)
          throws TransportException,
                 java.lang.IllegalArgumentException
Send the alert notification. Merge variables can be provided with the template information. The delivery transport will perform the template substitutions, and then delivery the resulting alert notification.

Parameters:
template - The template.
Throws:
TransportException - If an error occurs sending the alert notification.
java.lang.IllegalArgumentException - If a null template is specified.

setLogger

void setLogger(LoggerInterface logger)
Deprecated. The Logging Service has been deprecated. Use Log4J directly instead of calling this method to get the Logging Service logger.

Set the logger to be used by the Publish Services when logging publish activities.

Parameters:
logger - The logger.

getLogger

LoggerInterface getLogger()
Deprecated. The Logging Service has been deprecated. Use Log4J directly instead of calling this method to get the Logging Service logger.

Returns the logger that is being used by the Publish Services to log publish activities.

Returns:
LoggerInterface The logger that is being used by the publish services for logging purposes.

***  This interface provides Binary Compatibility only, not Source Compatibility  ***




Copyright © 2009 SAS Institute Inc. All Rights Reserved.