|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.james.fetchmail.ProcessorAbstract
public abstract class 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 java.lang.String |
computeAttributePrefix()
Returns the computed attributePrefix. |
org.apache.james.fetchmail.Account |
getAccount()
Returns the account. |
protected java.lang.String |
getAttributePrefix()
Returns a lazy initialised attributePrefix. |
protected java.util.Set |
getBlacklist()
Returns the blacklist. |
protected org.apache.james.fetchmail.ParsedConfiguration |
getConfiguration()
Returns the ParsedConfiguration from the Account . |
protected java.lang.String |
getCustomRecipientHeader()
Returns the customRecipientHeader. |
protected java.lang.String |
getDefaultDomainName()
Returns the defaultDomainName. |
protected java.lang.String |
getDefaultLocalPart()
Returns the defaultLocalPart. |
protected java.util.List |
getDeferredRecipientNotFoundMessageIDs()
Returns the message ids. of messages for which processing has been deferred as the recipient could not be found |
protected java.lang.String |
getFetchTaskName()
Returns the fetchTaskName. |
protected java.lang.String |
getHost()
Returns the host. |
protected java.lang.String |
getJavaMailFolderName()
Returns the javaMailFolderName. |
protected java.lang.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 java.lang.String |
getPassword()
Returns the password. |
protected MailAddress |
getRecipient()
Returns the recipient. |
protected int |
getRemoteReceivedHeaderIndex()
Method getRemoteReceivedHeaderIndex. |
protected MailServer |
getServer()
Returns the server. |
protected javax.mail.Session |
getSession()
Returns the session. |
protected java.lang.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(java.lang.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 java.lang.String getDefaultDomainName()
protected java.lang.String getDefaultLocalPart()
protected java.util.List getDeferredRecipientNotFoundMessageIDs()
protected java.lang.String getFetchTaskName()
protected java.lang.String getHost()
protected java.lang.String getJavaMailFolderName()
protected java.lang.String getJavaMailProviderName()
protected org.apache.avalon.framework.logger.Logger getLogger()
protected java.lang.String getPassword()
protected MailAddress getRecipient()
protected int getRemoteReceivedHeaderIndex()
protected MailServer getServer()
protected javax.mail.Session getSession()
protected UsersRepository getLocalUsers()
protected java.lang.String getUser()
protected boolean isFetchAll()
protected boolean isDeferRecipientNotFound()
protected boolean isIgnoreRecipientHeader()
protected java.lang.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 java.util.Set getBlacklist()
protected org.apache.james.fetchmail.ParsedConfiguration getConfiguration()
ParsedConfiguration
from the Account
.
protected java.lang.String getAttributePrefix()
protected java.lang.String computeAttributePrefix()
protected void setAttributePrefix(java.lang.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 |