Package com.day.cq.mailer
Interface MessageGateway<Type>
- 
- All Known Subinterfaces:
 MailService
public interface MessageGateway<Type>MessageGateway is an Object capable of sending a message to a recipient. An example of an message would be anEmail. This is an ServiceProvider to be used as to register as an OSGI service. Gateways can be accessed viaMessageGatewayService. This is used for example by the MailingService to send messages over different Gateways- Since:
 - 5.4
 - See Also:
 MessageGatewayService
 
- 
- 
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description booleanhandles(java.lang.Class<? extends Type> type)Indicate if the Gateway accepts a Message of the given typevoidsend(Type message) 
 - 
 
- 
- 
Method Detail
- 
handles
boolean handles(java.lang.Class<? extends Type> type)
Indicate if the Gateway accepts a Message of the given type- Parameters:
 type- to test- Returns:
 - true if the Class is of 
MessageGateway. 
 
- 
send
void send(Type message) throws MailingException
- Parameters:
 message- to send- Throws:
 MailingException- in case the message can not be sent.
 
 - 
 
 -