org.apache.james.fetchmail
Class DynamicAccount

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

public class DynamicAccount
extends java.lang.Object


Constructor Summary
DynamicAccount(int sequenceNumber, org.apache.james.fetchmail.ParsedConfiguration parsedConfiguration, java.lang.String userName, java.lang.String userPrefix, java.lang.String userSuffix, java.lang.String password, java.lang.String recipientPrefix, java.lang.String recipientSuffix, boolean ignoreRecipientHeader, java.lang.String customRecipientHeader, javax.mail.Session session)
          Constructor for DynamicAccount.
 
Method Summary
 int compareTo(java.lang.Object o)
          Compares this object with the specified object for order.
protected  java.util.List computeDeferredRecipientNotFoundMessageIDs()
          Returns a new List of deferredRecipientNotFoundMessageIDs.
 java.lang.String getCustomRecipientHeader()
          Returns the custom recipient header.
 java.util.List getDeferredRecipientNotFoundMessageIDs()
          Returns the deferredRecipientNotFoundMessageIDs. lazily initialised.
 org.apache.james.fetchmail.ParsedConfiguration getParsedConfiguration()
          Returns the parsedConfiguration.
 java.lang.String getPassword()
          Returns the password.
 MailAddress getRecipient()
          Returns the recipient.
 int getSequenceNumber()
          Returns the sequenceNumber.
 javax.mail.Session getSession()
          Returns the session.
 java.lang.String getUser()
          Returns the user.
 boolean isIgnoreRecipientHeader()
          Returns the ignoreRecipientHeader.
 void setCustomRecipientHeader(java.lang.String customRecipientHeader)
          Sets the custom recipient header.
protected  void setDeferredRecipientNotFoundMessageIDs(java.util.List 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(java.lang.String password)
          Sets the password.
protected  void setRecipient(MailAddress recipient)
          Sets the recipient.
protected  void setRecipient(java.lang.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(java.lang.String user)
          Sets the user.
protected  void updateDeferredRecipientNotFoundMessageIDs()
          Updates the deferredRecipientNotFoundMessageIDs.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DynamicAccount

public DynamicAccount(int sequenceNumber,
                      org.apache.james.fetchmail.ParsedConfiguration parsedConfiguration,
                      java.lang.String userName,
                      java.lang.String userPrefix,
                      java.lang.String userSuffix,
                      java.lang.String password,
                      java.lang.String recipientPrefix,
                      java.lang.String recipientSuffix,
                      boolean ignoreRecipientHeader,
                      java.lang.String customRecipientHeader,
                      javax.mail.Session session)
               throws org.apache.avalon.framework.configuration.ConfigurationException
Constructor for DynamicAccount.

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

getCustomRecipientHeader

public java.lang.String getCustomRecipientHeader()
Returns the custom recipient header.

Returns:
String

getPassword

public java.lang.String getPassword()
Returns the password.

Returns:
String

getRecipient

public MailAddress getRecipient()
Returns the recipient.

Returns:
MailAddress

getUser

public java.lang.String getUser()
Returns the user.

Returns:
String

setCustomRecipientHeader

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

Parameters:
customRecipientHeader - The header to be used

setPassword

protected void setPassword(java.lang.String password)
Sets the password.

Parameters:
password - The password to set

setRecipient

protected void setRecipient(MailAddress recipient)
Sets the recipient.

Parameters:
recipient - The recipient to set

setRecipient

protected void setRecipient(java.lang.String recipient)
                     throws org.apache.avalon.framework.configuration.ConfigurationException
Sets the recipient.

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

setUser

protected void setUser(java.lang.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(java.lang.Object o)
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 java.lang.Comparable
See Also:
Comparable.compareTo(Object)

getDeferredRecipientNotFoundMessageIDs

public java.util.List getDeferredRecipientNotFoundMessageIDs()
Returns the deferredRecipientNotFoundMessageIDs. lazily initialised.

Returns:
List

computeDeferredRecipientNotFoundMessageIDs

protected java.util.List computeDeferredRecipientNotFoundMessageIDs()
Returns a new List of deferredRecipientNotFoundMessageIDs.

Returns:
List

updateDeferredRecipientNotFoundMessageIDs

protected void updateDeferredRecipientNotFoundMessageIDs()
Updates the deferredRecipientNotFoundMessageIDs.


setDeferredRecipientNotFoundMessageIDs

protected void setDeferredRecipientNotFoundMessageIDs(java.util.List 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-2007 The Apache Software Foundation. All Rights Reserved.