com.caucho.jca.cfg
Class JavaMailConfig

java.lang.Object
  extended by com.caucho.config.cfg.AbstractBeanConfig
      extended by com.caucho.jca.cfg.JavaMailConfig

public class JavaMailConfig
extends AbstractBeanConfig

Configuration for a javamail.


Constructor Summary
JavaMailConfig()
           
 
Method Summary
 void initImpl()
           
 java.lang.Object replaceObject()
           
 void setAuthenticator(Authenticator auth)
          Sets the authenticator
 void setFrom(java.lang.String from)
          mail.from
 void setHost(java.lang.String host)
          mail.host
 void setImapHost(java.lang.String host)
          mail.imap.host
 void setImapUser(java.lang.String user)
          mail.imap.user
 void setPassword(java.lang.String password)
          password
 void setPop3Host(java.lang.String host)
          mail.pop3.host
 void setPop3User(java.lang.String user)
          mail.pop3.user
 void setProperties(java.util.Properties props)
           
 void setProperty(java.lang.String name, java.lang.String value)
          Sets an attribute.
 void setSmtpAuth(boolean isEnable)
          mail.smtp.auth
 void setSmtpHost(java.lang.String host)
          mail.smtp.host
 void setSmtpPort(int port)
          mail.smtp.port
 void setSmtpSsl(boolean ssl)
          mail.smtp.ssl
 void setSmtpUser(java.lang.String user)
          mail.smtp.user
 void setStoreProtocol(java.lang.String protocol)
          mail.store.protocol
 void setTransportProtocol(java.lang.String protocol)
          mail.transport.protocol
 void setUser(java.lang.String user)
          mail.user
 void setValue(java.util.Properties props)
           
 
Methods inherited from class com.caucho.config.cfg.AbstractBeanConfig
add, addBinding, buildAnnotatedType, deploy, getFilename, getInit, getInstanceClass, getJndiName, getLine, getName, init, setClass, setConfigLocation, setInit, setJndiName, setName, setScope
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

JavaMailConfig

public JavaMailConfig()
Method Detail

setAuthenticator

public void setAuthenticator(Authenticator auth)
Sets the authenticator


setFrom

public void setFrom(java.lang.String from)
mail.from


setHost

public void setHost(java.lang.String host)
mail.host


setImapHost

public void setImapHost(java.lang.String host)
mail.imap.host


setImapUser

public void setImapUser(java.lang.String user)
mail.imap.user


setPop3Host

public void setPop3Host(java.lang.String host)
mail.pop3.host


setPop3User

public void setPop3User(java.lang.String user)
mail.pop3.user


setSmtpAuth

public void setSmtpAuth(boolean isEnable)
mail.smtp.auth


setSmtpHost

public void setSmtpHost(java.lang.String host)
mail.smtp.host


setSmtpSsl

public void setSmtpSsl(boolean ssl)
mail.smtp.ssl


setSmtpPort

public void setSmtpPort(int port)
mail.smtp.port


setSmtpUser

public void setSmtpUser(java.lang.String user)
mail.smtp.user


setStoreProtocol

public void setStoreProtocol(java.lang.String protocol)
mail.store.protocol


setTransportProtocol

public void setTransportProtocol(java.lang.String protocol)
mail.transport.protocol


setUser

public void setUser(java.lang.String user)
mail.user


setPassword

public void setPassword(java.lang.String password)
password


setProperty

public void setProperty(java.lang.String name,
                        java.lang.String value)
Sets an attribute.


setProperties

public void setProperties(java.util.Properties props)

setValue

public void setValue(java.util.Properties props)

initImpl

public void initImpl()
              throws ConfigException
Overrides:
initImpl in class AbstractBeanConfig
Throws:
ConfigException

replaceObject

public java.lang.Object replaceObject()
Overrides:
replaceObject in class AbstractBeanConfig