public abstract class ProcessorAbstract extends Object
Class ProcessorAbstract
is an abstract class that provides
support for JavaMail processors. Concrete implementations are required to
implement the abstract method void process()
to process a
JavaMail element.
Typically, processors are chained. A Store processor delegates to a Folder processor that delegates to a Message processor.
ProcessorAbstract
wraps an Account - see
org.apache.james.fetchmail.Account
- providing contextual
information about the environment for the processor.
Modifier | Constructor and Description |
---|---|
protected |
ProcessorAbstract(org.apache.james.fetchmail.Account account)
Constructor for ProcessorAbstract.
|
Modifier and Type | Method and Description |
---|---|
protected String |
computeAttributePrefix()
Returns the computed attributePrefix.
|
org.apache.james.fetchmail.Account |
getAccount()
Returns the account.
|
protected String |
getAttributePrefix()
Returns a lazy initialised attributePrefix.
|
protected Set<org.apache.mailet.MailAddress> |
getBlacklist()
Returns the blacklist.
|
protected org.apache.james.fetchmail.ParsedConfiguration |
getConfiguration()
Returns the
ParsedConfiguration from the
Account . |
protected String |
getCustomRecipientHeader()
Returns the customRecipientHeader.
|
protected String |
getDefaultDomainName()
Returns the defaultDomainName.
|
protected String |
getDefaultLocalPart()
Returns the defaultLocalPart.
|
protected List<String> |
getDeferredRecipientNotFoundMessageIDs()
Returns the message ids.
|
protected DNSService |
getDNSServer()
Returns the DNSService
|
protected String |
getFetchTaskName()
Returns the fetchTaskName.
|
protected String |
getHost()
Returns the host.
|
protected String |
getJavaMailFolderName()
Returns the javaMailFolderName.
|
protected String |
getJavaMailProviderName()
Returns the javaMailProviderName.
|
protected UsersRepository |
getLocalUsers()
Returns the repository of local users.
|
protected org.slf4j.Logger |
getLogger()
Returns the logger.
|
protected MailQueue |
getMailQueue() |
protected int |
getMaxMessageSizeLimit()
Returns the getMaxMessageSizeLimit.
|
protected String |
getPassword()
Returns the password.
|
protected org.apache.mailet.MailAddress |
getRecipient()
Returns the recipient.
|
protected int |
getRemoteReceivedHeaderIndex()
Method getRemoteReceivedHeaderIndex.
|
protected javax.mail.Session |
getSession()
Returns the session.
|
protected String |
getUser()
Returns the user.
|
protected boolean |
isDeferRecipientNotFound()
Returns the isDeferRecipientNotFound.
|
protected boolean |
isFetchAll()
Returns the fetchAll.
|
protected boolean |
isIgnoreRecipientHeader()
Returns the ignoreOriginalRecipient.
|
protected boolean |
isLeave()
Returns the leave.
|
protected boolean |
isLeaveBlacklisted()
Returns the leaveBlacklisted.
|
protected boolean |
isLeaveMaxMessageSizeExceeded()
Returns the LeaveMaxMessageSizeExceeded.
|
protected boolean |
isLeaveRecipientNotFound()
Returns the leaveRecipientNotFound.
|
protected boolean |
isLeaveRemoteReceivedHeaderInvalid()
Returns the leaveRemoteReceivedHeaderInvalid.
|
protected boolean |
isLeaveRemoteRecipient()
Returns the leaveRemoteRecipient.
|
protected boolean |
isLeaveUndeliverable()
Returns the leaveUndeliverable.
|
protected boolean |
isLeaveUserUndefined()
Returns the leaveUserUndefinded.
|
protected boolean |
isMarkBlacklistedSeen()
Returns the markBlacklistedSeen.
|
protected boolean |
isMarkMaxMessageSizeExceededSeen()
Returns the MarkMaxMessageSizeExceededSeen.
|
protected boolean |
isMarkRecipientNotFoundSeen()
Returns the markRecipientNotFoundSeen.
|
protected boolean |
isMarkRemoteReceivedHeaderInvalidSeen()
Returns the markRemoteReceivedHeaderInvalidSeen.
|
protected boolean |
isMarkRemoteRecipientSeen()
Returns the markRemoteRecipientSeen.
|
protected boolean |
isMarkSeen()
Returns the markSeen.
|
protected boolean |
isMarkUndeliverableSeen()
Returns the markUndeliverableSeen.
|
protected boolean |
isMarkUserUndefinedSeen()
Returns the markUserUndefindedSeen.
|
protected boolean |
isOpenReadOnly()
Answers true if the folder should be opened read only.
|
protected boolean |
isRecurse()
Returns the recurse.
|
protected boolean |
isRejectBlacklisted()
Returns the RejectUserBlacklisted.
|
protected boolean |
isRejectMaxMessageSizeExceeded()
Returns the RejectMaxMessageSizeExceeded.
|
protected boolean |
isRejectRecipientNotFound()
Returns the rejectRecipientNotFound.
|
protected boolean |
isRejectRemoteReceivedHeaderInvalid()
Returns the RejectRemoteReceivedHeaderInvalid.
|
protected boolean |
isRejectRemoteRecipient()
Returns the RejectRemoteRecipient.
|
protected boolean |
isRejectUserUndefined()
Returns the RejectUserUndefinded.
|
abstract void |
process()
Process the mail elements of the receiver
|
protected void |
setAccount(org.apache.james.fetchmail.Account account)
Sets the account.
|
protected void |
setAttributePrefix(String attributePrefix)
Sets the attributePrefix.
|
protected void |
updateAttributePrefix()
Updates the attributePrefix.
|
protected ProcessorAbstract(org.apache.james.fetchmail.Account account)
account
- The Account
to be processedprotected String getDefaultDomainName()
protected String getDefaultLocalPart()
protected List<String> getDeferredRecipientNotFoundMessageIDs()
protected String getFetchTaskName()
protected String getHost()
protected String getJavaMailFolderName()
protected String getJavaMailProviderName()
protected org.slf4j.Logger getLogger()
protected String getPassword()
protected org.apache.mailet.MailAddress getRecipient()
protected int getRemoteReceivedHeaderIndex()
protected DNSService getDNSServer()
protected javax.mail.Session getSession()
protected UsersRepository getLocalUsers()
protected String getUser()
protected boolean isFetchAll()
protected boolean isDeferRecipientNotFound()
protected boolean isIgnoreRecipientHeader()
protected String getCustomRecipientHeader()
protected boolean isLeave()
protected boolean isMarkSeen()
protected boolean isLeaveBlacklisted()
protected boolean isLeaveRemoteRecipient()
protected boolean isLeaveUserUndefined()
protected boolean isLeaveRemoteReceivedHeaderInvalid()
protected boolean isLeaveMaxMessageSizeExceeded()
protected boolean isLeaveUndeliverable()
protected boolean isRejectUserUndefined()
protected boolean isRejectRemoteReceivedHeaderInvalid()
protected boolean isRejectMaxMessageSizeExceeded()
protected boolean isRejectBlacklisted()
protected boolean isRejectRemoteRecipient()
protected boolean isMarkBlacklistedSeen()
protected boolean isMarkRecipientNotFoundSeen()
protected boolean isLeaveRecipientNotFound()
protected boolean isRejectRecipientNotFound()
protected boolean isMarkRemoteRecipientSeen()
protected boolean isMarkUserUndefinedSeen()
protected boolean isMarkRemoteReceivedHeaderInvalidSeen()
protected boolean isMarkMaxMessageSizeExceededSeen()
protected boolean isMarkUndeliverableSeen()
protected boolean isOpenReadOnly()
protected boolean isRecurse()
public abstract void process() throws javax.mail.MessagingException
javax.mail.MessagingException
protected Set<org.apache.mailet.MailAddress> getBlacklist()
protected org.apache.james.fetchmail.ParsedConfiguration getConfiguration()
ParsedConfiguration
from the
Account
.protected String getAttributePrefix()
protected String computeAttributePrefix()
protected void setAttributePrefix(String attributePrefix)
attributePrefix
- The attributePrefix to setprotected void updateAttributePrefix()
public org.apache.james.fetchmail.Account getAccount()
protected void setAccount(org.apache.james.fetchmail.Account account)
account
- The account to setprotected int getMaxMessageSizeLimit()
protected MailQueue getMailQueue()
Copyright © 2002-2012 The Apache Software Foundation. All Rights Reserved.