Package mireka.list
Class ListDestination
- Object
-
- mireka.list.ListDestination
-
- All Implemented Interfaces:
Destination,MailDestination,ResponsibleDestination
public class ListDestination extends Object implements MailDestination
A ListDestination assigned to a recipient indicates that the mail should be redistributed to multiple recipients.This is a very simple mailing list implementation suitable for small, closed, internal lists.
Most of this class is coming from the GenericListserv class of Apache James.
- See Also:
- RFC 5321 3.9 Mailing Lists and Aliases
-
-
Constructor Summary
Constructors Constructor Description ListDestination()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddMember(ListMember listMember)voiddata(Mail mail)Processes the mail.StringgetAddress()StringgetListId()StringgetMembersOnlyMessage()MailValidatorgetNonMemberSenderValidator()StringgetReversePath()StringgetSubjectPrefix()TransmittergetTransmitter()booleanisAttachmentsAllowed()booleanisMembersOnly()booleanisReplyToList()voidredistribute(Mail srcMail)Processes the message.voidsetAddress(String address)voidsetAttachmentsAllowed(boolean attachmentsAllowed)voidsetDefaults()voidsetListId(String listId)voidsetMembers(java.util.List<ListMember> members)voidsetMembersOnly(boolean membersOnly)voidsetMembersOnlyMessage(String membersOnlyMessage)voidsetNonMemberSenderValidator(MailValidator nonMemberSenderValidator)voidsetReplyToList(boolean replyToList)voidsetReversePath(String reversePath)voidsetSubjectPrefix(String subjectPrefix)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
-
setDefaults
@PostConstruct public void setDefaults()
-
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
-
redistribute
public void redistribute(Mail srcMail) throws RejectExceptionExt
Processes the message.- 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
-
getAddress
public String getAddress()
- Category:
- GETSET
-
setAddress
public void setAddress(String address)
- Category:
- GETSET
-
getListId
public String getListId()
- Category:
- GETSET
-
setListId
public void setListId(String listId)
- Category:
- GETSET
-
addMember
public void addMember(ListMember listMember)
- Category:
- GETSET
-
setMembers
public void setMembers(java.util.List<ListMember> members)
- Category:
- GETSET
-
getSubjectPrefix
public String getSubjectPrefix()
- Category:
- GETSET
-
setSubjectPrefix
public void setSubjectPrefix(String subjectPrefix)
- Category:
- GETSET
-
isMembersOnly
public boolean isMembersOnly()
- Category:
- GETSET
-
setMembersOnly
public void setMembersOnly(boolean membersOnly)
- Category:
- GETSET
-
isAttachmentsAllowed
public boolean isAttachmentsAllowed()
- Category:
- GETSET
-
setAttachmentsAllowed
public void setAttachmentsAllowed(boolean attachmentsAllowed)
- Category:
- GETSET
-
isReplyToList
public boolean isReplyToList()
- Category:
- GETSET
-
setReplyToList
public void setReplyToList(boolean replyToList)
- Category:
- GETSET
-
getReversePath
public String getReversePath()
- Category:
- GETSET
-
setReversePath
public void setReversePath(String reversePath)
- Category:
- GETSET
-
getMembersOnlyMessage
public String getMembersOnlyMessage()
- Category:
- GETSET
-
setMembersOnlyMessage
public void setMembersOnlyMessage(String membersOnlyMessage)
- Category:
- GETSET
-
getNonMemberSenderValidator
public MailValidator getNonMemberSenderValidator()
- Category:
- GETSET
-
setNonMemberSenderValidator
public void setNonMemberSenderValidator(MailValidator nonMemberSenderValidator)
- Category:
- GETSET
-
getTransmitter
public Transmitter getTransmitter()
- Category:
- GETSET
-
setTransmitter
@Inject public void setTransmitter(Transmitter transmitter)
- Category:
- GETSET
-
-