com.sun.enterprise.deployment
Class MailConfiguration

java.lang.Object
  extended by com.sun.enterprise.deployment.MailConfiguration
All Implemented Interfaces:
java.io.Serializable

public class MailConfiguration
extends java.lang.Object
implements java.io.Serializable

This class represent the configuration information of the JavaMail Session object within J2EE.

See Also:
Serialized Form

Constructor Summary
MailConfiguration(MailResourceIntf mailRes)
          Construct a specification of mail configuration.
MailConfiguration(java.lang.String username, java.lang.String mailFrom)
          Deprecated.  
MailConfiguration(java.lang.String username, java.lang.String mailFrom, java.lang.String mailHost)
          Construct a specification of mail configuration with the given username, Mail From Address and mail hostname.
 
Method Summary
 java.lang.String getDescription()
          Get the mail description for the mail session the server will provide.
 boolean getEnabled()
          Get the mail enable flag for the mail session the server will provide.
 java.lang.String getJndiName()
          Get the mail JNDI name for the mail session the server will provide.
 boolean getMailDebug()
          Get the mail debug flag for the mail session the server will provide.
 java.lang.String getMailFrom()
          Get the mail from address for the mail session the server will provide.
 java.lang.String getMailHost()
          Get the mail hostname for the mail session the server will provide.
 java.util.Properties getMailProperties()
          Get the mail session properties as per JavaMail.
 java.lang.String getMailStoreProtocol()
          Get the default Message Access Protocol for the mail session the server will provide.
 java.lang.String getMailStoreProtocolClass()
          Get the default Message Access Protocol class for the mail session the server will provide.
 java.lang.String getMailTransportProtocol()
          Get the default Transport Protocol for the mail session the server will provide.
 java.lang.String getMailTransportProtocolClass()
          Get the default Transport Protocol class for the mail session the server will provide.
 java.lang.String getUsername()
          Get the username for the mail session the server will provide.
 void print(java.lang.StringBuffer toStringBuffer)
          A formatted representation of my state.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MailConfiguration

public MailConfiguration(java.lang.String username,
                         java.lang.String mailFrom)
Deprecated. 

This constructs the mail configuration based on the username and the from address. This constructor is deprecated.

Parameters:
the - username
the - from address

MailConfiguration

public MailConfiguration(java.lang.String username,
                         java.lang.String mailFrom,
                         java.lang.String mailHost)
Construct a specification of mail configuration with the given username, Mail From Address and mail hostname.

Parameters:
the - username.
the - from address.
the - mail hostname.

MailConfiguration

public MailConfiguration(MailResourceIntf mailRes)
Construct a specification of mail configuration.

Method Detail

getUsername

public java.lang.String getUsername()
Get the username for the mail session the server will provide.

Returns:
the username.

getMailFrom

public java.lang.String getMailFrom()
Get the mail from address for the mail session the server will provide.

Returns:
the from address.

getMailHost

public java.lang.String getMailHost()
Get the mail hostname for the mail session the server will provide.

Returns:
the hostname of the mail server.

getMailStoreProtocol

public java.lang.String getMailStoreProtocol()
Get the default Message Access Protocol for the mail session the server will provide.

Returns:
the store protocol of the mail server.

getMailTransportProtocol

public java.lang.String getMailTransportProtocol()
Get the default Transport Protocol for the mail session the server will provide.

Returns:
the transport protocol of the mail server.

getMailStoreProtocolClass

public java.lang.String getMailStoreProtocolClass()
Get the default Message Access Protocol class for the mail session the server will provide.

Returns:
the store protocol of the mail server.

getMailTransportProtocolClass

public java.lang.String getMailTransportProtocolClass()
Get the default Transport Protocol class for the mail session the server will provide.

Returns:
the transport protocol of the mail server.

getMailDebug

public boolean getMailDebug()
Get the mail debug flag for the mail session the server will provide.

Returns:
the debug flag of the mail server.

getDescription

public java.lang.String getDescription()
Get the mail description for the mail session the server will provide.

Returns:
the description of the mail server.

getJndiName

public java.lang.String getJndiName()
Get the mail JNDI name for the mail session the server will provide.

Returns:
the JNDI name of the mail server.

getEnabled

public boolean getEnabled()
Get the mail enable flag for the mail session the server will provide.

Returns:
the enable flag of the mail server.

getMailProperties

public java.util.Properties getMailProperties()
Get the mail session properties as per JavaMail.

Returns:
the mail session properties.

print

public void print(java.lang.StringBuffer toStringBuffer)
A formatted representation of my state.



Copyright © 2012 GlassFish Community. All Rights Reserved.