Package mireka.destination
Class TransformDestination
- Object
-
- mireka.destination.TransformDestination
-
- All Implemented Interfaces:
Destination,MailDestination,ResponsibleDestination
public class TransformDestination extends Object implements MailDestination
Transforms the mail sent to the recipient and forwards the result. Note: this minimal implementation can only send a new mail with the specified subject and an empty body.
-
-
Constructor Summary
Constructors Constructor Description TransformDestination()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voiddata(Mail mail)Processes the mail.StringgetFrom()StringgetRecipient()StringgetReversePath()StringgetSubject()TransmittergetTransmitter()voidsetFrom(String from)voidsetRecipient(String recipient)voidsetReversePath(String reversePath)voidsetSubject(String subject)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
-
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
-
getSubject
public String getSubject()
- Category:
- GETSET
-
setSubject
public void setSubject(String subject)
- Category:
- GETSET
-
getRecipient
public String getRecipient()
- Category:
- GETSET
-
setRecipient
public void setRecipient(String recipient)
- Category:
- GETSET
-
getReversePath
public String getReversePath()
- Category:
- GETSET
-
setReversePath
public void setReversePath(String reversePath)
- Category:
- GETSET
-
getFrom
public String getFrom()
- Category:
- GETSET
-
setFrom
public void setFrom(String from)
- Category:
- GETSET
-
getTransmitter
public Transmitter getTransmitter()
- Category:
- GETSET
-
setTransmitter
public void setTransmitter(Transmitter transmitter)
- Category:
- GETSET
-
-