|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.james.fetchmail.ProcessorAbstract
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.
Creation Date: 27-May-03
Constructor Summary | |
protected |
ProcessorAbstract(org.apache.james.fetchmail.Account account)
Constructor for ProcessorAbstract. |
Method Summary | |
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 |
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 |
getDeferredRecipientNotFoundMessageIDs()
Returns the message ids. of messages for which processing has been deferred as the recipient could not be found |
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.apache.avalon.framework.logger.Logger |
getLogger()
Returns the logger. |
protected int |
getMaxMessageSizeLimit()
Returns the getMaxMessageSizeLimit. |
protected String |
getPassword()
Returns the password. |
protected MailAddress |
getRecipient()
Returns the recipient. |
protected int |
getRemoteReceivedHeaderIndex()
Method getRemoteReceivedHeaderIndex. |
protected MailServer |
getServer()
Returns the server. |
protected 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. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
protected ProcessorAbstract(org.apache.james.fetchmail.Account account)
account
- The Account
to be processedMethod Detail |
protected String getDefaultDomainName()
protected String getDefaultLocalPart()
protected List getDeferredRecipientNotFoundMessageIDs()
protected String getFetchTaskName()
protected String getHost()
protected String getJavaMailFolderName()
protected String getJavaMailProviderName()
protected org.apache.avalon.framework.logger.Logger getLogger()
protected String getPassword()
protected MailAddress getRecipient()
protected int getRemoteReceivedHeaderIndex()
protected MailServer getServer()
protected 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 MessagingException
MessagingException
protected Set 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()
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |