public class ListDestination extends Object implements MailDestination
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.
Constructor and Description |
---|
ListDestination() |
Modifier and Type | Method and Description |
---|---|
void |
addMember(ListMember listMember) |
void |
data(Mail mail)
Processes the mail.
|
String |
getAddress() |
String |
getListId() |
String |
getMembersOnlyMessage() |
MailValidator |
getNonMemberSenderValidator() |
String |
getReversePath() |
String |
getSubjectPrefix() |
Transmitter |
getTransmitter() |
boolean |
isAttachmentsAllowed() |
boolean |
isMembersOnly() |
boolean |
isReplyToList() |
void |
redistribute(Mail srcMail)
Processes the message.
|
void |
setAddress(String address) |
void |
setAttachmentsAllowed(boolean attachmentsAllowed) |
void |
setDefaults() |
void |
setListId(String listId) |
void |
setMembers(java.util.List<ListMember> members) |
void |
setMembersOnly(boolean membersOnly) |
void |
setMembersOnlyMessage(String membersOnlyMessage) |
void |
setNonMemberSenderValidator(MailValidator nonMemberSenderValidator) |
void |
setReplyToList(boolean replyToList) |
void |
setReversePath(String reversePath) |
void |
setSubjectPrefix(String subjectPrefix) |
void |
setTransmitter(Transmitter transmitter) |
String |
toString()
Returns a string representation of the destination suitable for logging
purposes.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
equals, hashCode
@PostConstruct public void setDefaults()
public void data(Mail mail) throws RejectExceptionExt
MailDestination
data
in interface MailDestination
RejectExceptionExt
public void redistribute(Mail srcMail) throws RejectExceptionExt
RejectExceptionExt
public String toString()
ResponsibleDestination
toString
in interface ResponsibleDestination
toString
in class Object
public String getAddress()
public void setAddress(String address)
public String getListId()
public void setListId(String listId)
public void addMember(ListMember listMember)
public void setMembers(java.util.List<ListMember> members)
public String getSubjectPrefix()
public void setSubjectPrefix(String subjectPrefix)
public boolean isMembersOnly()
public void setMembersOnly(boolean membersOnly)
public boolean isAttachmentsAllowed()
public void setAttachmentsAllowed(boolean attachmentsAllowed)
public boolean isReplyToList()
public void setReplyToList(boolean replyToList)
public String getReversePath()
public void setReversePath(String reversePath)
public String getMembersOnlyMessage()
public void setMembersOnlyMessage(String membersOnlyMessage)
public MailValidator getNonMemberSenderValidator()
public void setNonMemberSenderValidator(MailValidator nonMemberSenderValidator)
public Transmitter getTransmitter()
@Inject public void setTransmitter(Transmitter transmitter)