org.apache.servicemix.mail.utils
Class MailConnectionConfiguration

java.lang.Object
  extended by org.apache.servicemix.mail.utils.MailConnectionConfiguration

public class MailConnectionConfiguration
extends java.lang.Object

a data holder class for the connection information

Author:
lhein

Constructor Summary
MailConnectionConfiguration()
           
 
Method Summary
 javax.mail.Authenticator getAuthenticator()
          returns an authenticator object for use in sessions
 javax.mail.Authenticator getAuthenticator(java.lang.String user, java.lang.String password)
          returns an authenticator object for use in sessions
 java.lang.String getFolderName()
           
 java.lang.String getHost()
           
 java.lang.String getPassword()
           
 int getPort()
           
 java.lang.String getProtocol()
           
 java.lang.String getUsername()
           
 boolean isSecureProtocol()
          flags the used protocol to be secure or not
 void setFolderName(java.lang.String folderName)
           
 void setHost(java.lang.String host)
           
 void setPassword(java.lang.String password)
           
 void setPort(int port)
           
 void setProtocol(java.lang.String protocol)
           
 void setUsername(java.lang.String username)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MailConnectionConfiguration

public MailConnectionConfiguration()
Method Detail

getHost

public java.lang.String getHost()
Returns:
the host

setHost

public void setHost(java.lang.String host)
Parameters:
host - the host to set

getPassword

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

setPassword

public void setPassword(java.lang.String password)
Parameters:
password - the password to set

getProtocol

public java.lang.String getProtocol()
Returns:
the protocol

setProtocol

public void setProtocol(java.lang.String protocol)
Parameters:
protocol - the protocol to set

getUsername

public java.lang.String getUsername()
Returns:
the username

setUsername

public void setUsername(java.lang.String username)
Parameters:
username - the username to set

getFolderName

public java.lang.String getFolderName()
Returns:
the folderName

setFolderName

public void setFolderName(java.lang.String folderName)
Parameters:
folderName - the folderName to set

getPort

public int getPort()
Returns:
the port

setPort

public void setPort(int port)
Parameters:
port - the port to set

isSecureProtocol

public boolean isSecureProtocol()
flags the used protocol to be secure or not

Returns:
true if secure otherwise false

getAuthenticator

public javax.mail.Authenticator getAuthenticator()
returns an authenticator object for use in sessions

Returns:
the authenticator object

getAuthenticator

public javax.mail.Authenticator getAuthenticator(java.lang.String user,
                                                 java.lang.String password)
returns an authenticator object for use in sessions

Parameters:
user - the user name
password - the password
Returns:
the authenticator object


Copyright © 2005-2012 FuseSource. All Rights Reserved.