Package mireka.destination
Class NullDestination
- Object
-
- mireka.destination.NullDestination
-
- All Implemented Interfaces:
Destination,MailDestination,ResponsibleDestination
public class NullDestination extends Object implements MailDestination
NullDestination drops the mail.
-
-
Constructor Summary
Constructors Constructor Description NullDestination()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voiddata(Mail mail)Processes the mail.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
-
-