Package mireka.forward
Class ForwardDestination
- Object
-
- mireka.forward.ForwardDestination
-
- All Implemented Interfaces:
Destination,MailDestination,ResponsibleDestination
public class ForwardDestination extends Object implements MailDestination
ForwardDestination redistributes mail to multiple recipients without changing the reverse path.- See Also:
- RFC 5321 3.9 Mailing Lists and Aliases
-
-
Constructor Summary
Constructors Constructor Description ForwardDestination()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voiddata(Mail mail)Processes the mail.voidforward(Mail srcMail)Processes the message.voidsetMembers(java.util.List<Member> members)voidsetSrs(Srs srs)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
-
forward
public void forward(Mail srcMail) throws RejectExceptionExt
Processes the message.- Throws:
RejectExceptionExt
-
setMembers
public void setMembers(java.util.List<Member> members)
- Category:
- GETSET
-
setTransmitter
@Inject public void setTransmitter(Transmitter transmitter)
- Category:
- GETSET
-
setSrs
@Inject public void setSrs(Srs srs)
- 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
-
-