commons-mail
b2007062501

org.phosphoresce.commons.mail.configure
クラス MailSMTPConfiguration

java.lang.Object
  拡張org.phosphoresce.commons.mail.MailConfiguration
      拡張org.phosphoresce.commons.mail.configure.MailSMTPConfiguration
すべての実装インタフェース:
MailDeclareInterface, java.io.Serializable

public final class MailSMTPConfiguration
extends MailConfiguration

SMTPサーバー環境設定情報保持クラス。

作成者:
Kitagawa
関連項目:
直列化された形式

フィールドの概要
static int DEFAULT_PORT
          ディフォルトサーバーポート
static java.lang.String PROTOCOL
          サーバー接続プロトコル
 
インタフェース org.phosphoresce.commons.mail.MailDeclareInterface から継承したフィールド
CHARSET_ISO_2022_JP, DEFAULT_MIME_CHARSET, EMAIL_EXTENSION, PRIMARY_FOLDER
 
コンストラクタの概要
MailSMTPConfiguration()
          コンストラクタ
MailSMTPConfiguration(java.lang.String server, int port, java.lang.String user, java.lang.String password)
          コンストラクタ
MailSMTPConfiguration(java.lang.String server, java.lang.String user, java.lang.String password)
          コンストラクタ
 
メソッドの概要
protected  void appendSessionProperties(java.util.Properties properties)
          SMTP環境設定オブジェクトが保持する情報をPropertiesオブジェクトに追加します。
protected  boolean isSender()
          環境設定情報が送信用定義であるか取得します。
 
クラス org.phosphoresce.commons.mail.MailConfiguration から継承したメソッド
checkConnection, createSessionProperties, getDebug, getPassword, getPort, getProtocol, getServer, getSession, getUser, setDebug, setPassword, setPort, setProtocol, setServer, setUser
 
クラス java.lang.Object から継承したメソッド
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

フィールドの詳細

PROTOCOL

public static final java.lang.String PROTOCOL
サーバー接続プロトコル

関連項目:
定数フィールド値

DEFAULT_PORT

public static final int DEFAULT_PORT
ディフォルトサーバーポート

関連項目:
定数フィールド値
コンストラクタの詳細

MailSMTPConfiguration

public MailSMTPConfiguration()
コンストラクタ


MailSMTPConfiguration

public MailSMTPConfiguration(java.lang.String server,
                             int port,
                             java.lang.String user,
                             java.lang.String password)
コンストラクタ

パラメータ:
server - サーバーアドレス
port - サーバーポート
user - サーバー認証ユーザー
password - サーバー認証パスワード

MailSMTPConfiguration

public MailSMTPConfiguration(java.lang.String server,
                             java.lang.String user,
                             java.lang.String password)
コンストラクタ

パラメータ:
server - サーバーアドレス
user - サーバー認証ユーザー
password - サーバー認証パスワード
メソッドの詳細

isSender

protected boolean isSender()
環境設定情報が送信用定義であるか取得します。

定義:
クラス MailConfiguration 内の isSender
戻り値:
送信用定義である場合、trueを返却
関連項目:
MailConfiguration.isSender()

appendSessionProperties

protected void appendSessionProperties(java.util.Properties properties)
SMTP環境設定オブジェクトが保持する情報をPropertiesオブジェクトに追加します。

定義:
クラス MailConfiguration 内の appendSessionProperties
パラメータ:
properties - Propertiesオブジェクト
関連項目:
MailConfiguration.appendSessionProperties(java.util.Properties)

commons-mail
b2007062501