public class DynamicAccount extends Object
Constructor and Description |
---|
DynamicAccount(int sequenceNumber,
org.apache.james.fetchmail.ParsedConfiguration parsedConfiguration,
String userName,
String userPrefix,
String userSuffix,
String password,
String recipientPrefix,
String recipientSuffix,
boolean ignoreRecipientHeader,
String customRecipientHeader,
javax.mail.Session session)
Constructor for DynamicAccount.
|
Modifier and Type | Method and Description |
---|---|
int |
compareTo(org.apache.james.fetchmail.Account account)
Compares this object with the specified object for order.
|
protected List<String> |
computeDeferredRecipientNotFoundMessageIDs()
Returns a new List of deferredRecipientNotFoundMessageIDs.
|
boolean |
equals(Object obj) |
String |
getCustomRecipientHeader()
Returns the custom recipient header.
|
List<String> |
getDeferredRecipientNotFoundMessageIDs()
Returns the deferredRecipientNotFoundMessageIDs.
|
org.apache.james.fetchmail.ParsedConfiguration |
getParsedConfiguration()
Returns the parsedConfiguration.
|
String |
getPassword()
Returns the password.
|
org.apache.mailet.MailAddress |
getRecipient()
Returns the recipient.
|
int |
getSequenceNumber()
Returns the sequenceNumber.
|
javax.mail.Session |
getSession()
Returns the session.
|
String |
getUser()
Returns the user.
|
int |
hashCode() |
boolean |
isIgnoreRecipientHeader()
Returns the ignoreRecipientHeader.
|
void |
setCustomRecipientHeader(String customRecipientHeader)
Sets the custom recipient header.
|
protected void |
setDeferredRecipientNotFoundMessageIDs(List<String> defferedRecipientNotFoundMessageIDs)
Sets the defferedRecipientNotFoundMessageIDs.
|
protected void |
setIgnoreRecipientHeader(boolean ignoreRecipientHeader)
Sets the ignoreRecipientHeader.
|
protected void |
setParsedConfiguration(org.apache.james.fetchmail.ParsedConfiguration parsedConfiguration)
Sets the parsedConfiguration.
|
protected void |
setPassword(String password)
Sets the password.
|
protected void |
setRecipient(org.apache.mailet.MailAddress recipient)
Sets the recipient.
|
protected void |
setRecipient(String recipient)
Sets the recipient.
|
protected void |
setSequenceNumber(int sequenceNumber)
Sets the sequenceNumber.
|
protected void |
setSession(javax.mail.Session session)
Sets the session.
|
protected void |
setUser(String user)
Sets the user.
|
protected void |
updateDeferredRecipientNotFoundMessageIDs()
Updates the deferredRecipientNotFoundMessageIDs.
|
public DynamicAccount(int sequenceNumber, org.apache.james.fetchmail.ParsedConfiguration parsedConfiguration, String userName, String userPrefix, String userSuffix, String password, String recipientPrefix, String recipientSuffix, boolean ignoreRecipientHeader, String customRecipientHeader, javax.mail.Session session) throws org.apache.commons.configuration.ConfigurationException
sequenceNumber
- parsedConfiguration
- userName
- userPrefix
- userSuffix
- password
- recipientPrefix
- recipientSuffix
- ignoreRecipientHeader
- session
- org.apache.commons.configuration.ConfigurationException
public String getCustomRecipientHeader()
public String getPassword()
public org.apache.mailet.MailAddress getRecipient()
public String getUser()
public void setCustomRecipientHeader(String customRecipientHeader)
customRecipientHeader
- The header to be usedprotected void setPassword(String password)
password
- The password to setprotected void setRecipient(org.apache.mailet.MailAddress recipient)
recipient
- The recipient to setprotected void setRecipient(String recipient) throws org.apache.commons.configuration.ConfigurationException
recipient
- The recipient to setorg.apache.commons.configuration.ConfigurationException
protected void setUser(String user)
user
- The user to setprotected void setIgnoreRecipientHeader(boolean ignoreRecipientHeader)
ignoreRecipientHeader
- The ignoreRecipientHeader to setpublic boolean isIgnoreRecipientHeader()
public int getSequenceNumber()
protected void setSequenceNumber(int sequenceNumber)
sequenceNumber
- The sequenceNumber to setpublic int compareTo(org.apache.james.fetchmail.Account account)
compareTo
in interface Comparable<org.apache.james.fetchmail.Account>
Comparable.compareTo(Object)
public List<String> getDeferredRecipientNotFoundMessageIDs()
protected List<String> computeDeferredRecipientNotFoundMessageIDs()
protected void updateDeferredRecipientNotFoundMessageIDs()
protected void setDeferredRecipientNotFoundMessageIDs(List<String> defferedRecipientNotFoundMessageIDs)
defferedRecipientNotFoundMessageIDs
- The defferedRecipientNotFoundMessageIDs to setpublic org.apache.james.fetchmail.ParsedConfiguration getParsedConfiguration()
protected void setParsedConfiguration(org.apache.james.fetchmail.ParsedConfiguration parsedConfiguration)
parsedConfiguration
- The parsedConfiguration to setpublic javax.mail.Session getSession()
protected void setSession(javax.mail.Session session)
session
- The session to setCopyright © 2002-2012 The Apache Software Foundation. All Rights Reserved.