org.apache.james.fetchmail
Class DynamicAccount

java.lang.Object
  extended by org.apache.james.fetchmail.DynamicAccount
All Implemented Interfaces:
Comparable<org.apache.james.fetchmail.Account>

public class DynamicAccount
extends Object


Constructor Summary
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.
 
Method Summary
 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.
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DynamicAccount

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
Constructor for DynamicAccount.

Parameters:
sequenceNumber -
parsedConfiguration -
userName -
userPrefix -
userSuffix -
password -
recipientPrefix -
recipientSuffix -
ignoreRecipientHeader -
session -
Throws:
org.apache.commons.configuration.ConfigurationException
Method Detail

getCustomRecipientHeader

public String getCustomRecipientHeader()
Returns the custom recipient header.

Returns:
String

getPassword

public String getPassword()
Returns the password.

Returns:
String

getRecipient

public org.apache.mailet.MailAddress getRecipient()
Returns the recipient.

Returns:
MailAddress

getUser

public String getUser()
Returns the user.

Returns:
String

setCustomRecipientHeader

public void setCustomRecipientHeader(String customRecipientHeader)
Sets the custom recipient header.

Parameters:
customRecipientHeader - The header to be used

setPassword

protected void setPassword(String password)
Sets the password.

Parameters:
password - The password to set

setRecipient

protected void setRecipient(org.apache.mailet.MailAddress recipient)
Sets the recipient.

Parameters:
recipient - The recipient to set

setRecipient

protected void setRecipient(String recipient)
                     throws org.apache.commons.configuration.ConfigurationException
Sets the recipient.

Parameters:
recipient - The recipient to set
Throws:
org.apache.commons.configuration.ConfigurationException

setUser

protected void setUser(String user)
Sets the user.

Parameters:
user - The user to set

setIgnoreRecipientHeader

protected void setIgnoreRecipientHeader(boolean ignoreRecipientHeader)
Sets the ignoreRecipientHeader.

Parameters:
ignoreRecipientHeader - The ignoreRecipientHeader to set

isIgnoreRecipientHeader

public boolean isIgnoreRecipientHeader()
Returns the ignoreRecipientHeader.

Returns:
boolean

getSequenceNumber

public int getSequenceNumber()
Returns the sequenceNumber.

Returns:
int

setSequenceNumber

protected void setSequenceNumber(int sequenceNumber)
Sets the sequenceNumber.

Parameters:
sequenceNumber - The sequenceNumber to set

compareTo

public int compareTo(org.apache.james.fetchmail.Account account)
Compares this object with the specified object for order. Returns a negative integer, zero, or a positive integer if this object is less than, equal to, or greater than the specified object.

Specified by:
compareTo in interface Comparable<org.apache.james.fetchmail.Account>
See Also:
Comparable.compareTo(Object)

equals

public boolean equals(Object obj)

Overrides:
equals in class Object

hashCode

public int hashCode()

Overrides:
hashCode in class Object

getDeferredRecipientNotFoundMessageIDs

public List<String> getDeferredRecipientNotFoundMessageIDs()
Returns the deferredRecipientNotFoundMessageIDs. lazily initialised.

Returns:
List

computeDeferredRecipientNotFoundMessageIDs

protected List<String> computeDeferredRecipientNotFoundMessageIDs()
Returns a new List of deferredRecipientNotFoundMessageIDs.

Returns:
List

updateDeferredRecipientNotFoundMessageIDs

protected void updateDeferredRecipientNotFoundMessageIDs()
Updates the deferredRecipientNotFoundMessageIDs.


setDeferredRecipientNotFoundMessageIDs

protected void setDeferredRecipientNotFoundMessageIDs(List<String> defferedRecipientNotFoundMessageIDs)
Sets the defferedRecipientNotFoundMessageIDs.

Parameters:
defferedRecipientNotFoundMessageIDs - The defferedRecipientNotFoundMessageIDs to set

getParsedConfiguration

public org.apache.james.fetchmail.ParsedConfiguration getParsedConfiguration()
Returns the parsedConfiguration.

Returns:
ParsedConfiguration

setParsedConfiguration

protected void setParsedConfiguration(org.apache.james.fetchmail.ParsedConfiguration parsedConfiguration)
Sets the parsedConfiguration.

Parameters:
parsedConfiguration - The parsedConfiguration to set

getSession

public javax.mail.Session getSession()
Returns the session.

Returns:
Session

setSession

protected void setSession(javax.mail.Session session)
Sets the session.

Parameters:
session - The session to set


Copyright © 2002-2012 The Apache Software Foundation. All Rights Reserved.