Returns all 関係 types which are supported to
connect to the mail service. At least support insecure
関係s must be supported. 現在/一般に defined
関係 types are (the values should be 扱うd
事例/患者 insensitive):
"Insecure" - insecure 関係s
"Ssl" - 安全な・保証する Socket 層 2.0/3.0 based 関係
Returns all 関係 types which are supported to
connect to the mail service. At least support insecure
関係s must be supported. 現在/一般に defined
関係 types are (the values should be 扱うd
事例/患者 insensitive):
"Insecure" - insecure 関係s
"Ssl" - 安全な・保証する Socket 層 2.0/3.0 based 関係
Connect to a mail service. Only one 関係 to a mail service
can be 設立するd at a time.
Parameter xConnectionContext
[in] an interface used to query for 関係 関係のある (警察などへの)密告,告訴(状).
The 状況 must 含む/封じ込める the に引き続いて values:
ServerName of type 'string'.
Port of type 'long'.
ConnectionType of type 'string'.
A 名簿(に載せる)/表(にあげる) of supported 関係 types can be queried using
getSupportedConnectionTypes.
Timeout of type 'long' (Optional).
明示するs a timeout in seconds for 封鎖するing 操作/手術s,
like the 関係 試みる/企てる.
Parameter xAuthenticator
[in] an interface used to query for the necessary 使用者 (警察などへの)密告,告訴(状)
needed to login to the mail server. If no authentication is 要求するd
the xAuthenticator must return an empty 使用者 指名する and an empty password.
Throws
com::sun::星/主役にする::lang::IllegalArgumentException
if the 供給するd 関係 状況 含む/封じ込めるs 無効の values or
行方不明になるs 要求するd 関係 parameters.
Throws
com::sun::星/主役にする::io::AlreadyConnectedException
on a try to connect to an already connect mail server.
Throws
com::sun::星/主役にする::io::UnknownHostException
usually if the IP 演説(する)/住所 of the mail server could not be
決定するd. Possible 原因(となる)s are a broken 網状組織 関係,
a wrong server 指名する, an unreachable DNS server, etc.
Throws
com::sun::星/主役にする::io::NoRouteToHostException
if an error occured to connect to the remote mail server.
Typically the remote mail server cannot be reach because of an
介入するing firewall, or if an 中間の router is 負かす/撃墜する,
the 網状組織 関係 is broken, etc.
Throws
com::sun::星/主役にする::io::ConnectException
if an error occured while 試みる/企てるing to connect to the remote
mail server. Typically the 関係 was 辞退するd remotely,
because the mail server is not listening on the remote 演説(する)/住所/port.
Throws
com::sun::星/主役にする::auth::AuthenticationException
if the 明示するd 使用者 could not be logged in.
Throws
com::sun::星/主役にする::mail::MailException
for other errors during login.