Package mireka.transmission
Class TransmitterDestination
- Object
-
- mireka.transmission.TransmitterDestination
-
- All Implemented Interfaces:
Destination,MailDestination,ResponsibleDestination
public class TransmitterDestination extends Object implements MailDestination
The TransmitterDestination marks a recipient for which the mail must be transmitted asynchronously to a remote MTA as specified by the remote part of the address. Usually the remote part is a domain name, and the MTA must be find by looking up the DNS MX record of that domain. The transmitter can also be configured to be a null client, which relays all mail through another MTA, the so called smart client.
-
-
Constructor Summary
Constructors Constructor Description TransmitterDestination()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voiddata(Mail mail)Processes the mail.TransmittergetTransmitter()voidsetTransmitter(Transmitter transmitter)StringtoString()Returns a string representation of the destination suitable for logging purposes.-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface mireka.destination.ResponsibleDestination
equals, hashCode
-
-
-
-
Method Detail
-
data
public void data(Mail mail) throws RejectExceptionExt
Description copied from interface:MailDestinationProcesses the mail. This function is called after the SMTP DATA command has been received. It is only called if there is at least one accepted recipient.- Specified by:
datain interfaceMailDestination- Throws:
RejectExceptionExt
-
setTransmitter
@Inject public void setTransmitter(Transmitter transmitter)
- Category:
- GETSET
-
getTransmitter
public Transmitter getTransmitter()
- Category:
- GETSET
-
toString
public String toString()
Description copied from interface:ResponsibleDestinationReturns a string representation of the destination suitable for logging purposes. Usually it should contain enough information to show the difference between non-equal destinations.- Specified by:
toStringin interfaceResponsibleDestination- Overrides:
toStringin classObject
-
-