|
||||||||||
| 前のクラス 次のクラス | フレームあり フレームなし | |||||||||
| 概要: 入れ子 | フィールド | コンストラクタ | メソッド | 詳細: フィールド | コンストラクタ | メソッド | |||||||||
java.lang.Objectjavax.mail.Service
javax.mail.Store
com.sun.mail.imap.IMAPStore
public class IMAPStore
このクラスは IMAP メッセージストアへのアクセスを提供します。
Applications that need to make use of IMAP-specific features may cast
a Store object to an IMAPStore object and
use the methods on this class. The getQuota and
setQuota methods support the IMAP QUOTA extension.
Refer to RFC 2087
for more information.
See the com.sun.mail.imap package documentation for further information on the IMAP protocol provider.
WARNING: The APIs unique to this class should be considered EXPERIMENTAL. They may be changed in the future in ways that are incompatible with applications using the current APIs.
| フィールドの概要 |
|---|
| クラス javax.mail.Service から継承されたフィールド |
|---|
session, url |
| コンストラクタの概要 | |
|---|---|
IMAPStore(Session session,
URLName url)
Constructor that takes a Session object and a URLName that represents a specific IMAP server. |
|
IMAPStore(Session session,
URLName url,
String name,
int defaultPort,
boolean isSSL)
Constructor used by this class and by IMAPSSLStore subclass. |
|
| メソッドの概要 | |
|---|---|
void |
close()
この Store を閉じます。 |
protected void |
finalize()
キューがガベージコレクト可能になるように、イベントディスパッチャスレッドを停止します。 |
Folder |
getDefaultFolder()
Get the default folder, representing the root of this user's namespace. |
Folder |
getFolder(String name)
Get named folder. |
Folder |
getFolder(URLName url)
Get named folder. |
Folder[] |
getPersonalNamespaces()
Using the IMAP NAMESPACE command (RFC 2342), return a set of folders representing the Personal namespaces. |
Quota[] |
getQuota(String root)
Get the quotas for the named quota root. |
Folder[] |
getSharedNamespaces()
Using the IMAP NAMESPACE command (RFC 2342), return a set of folders representing the Shared namespaces. |
Folder[] |
getUserNamespaces(String user)
Using the IMAP NAMESPACE command (RFC 2342), return a set of folders representing the User's namespaces. |
void |
handleResponse(com.sun.mail.iap.Response r)
レスポンスハンドラメソッドです。 |
boolean |
hasCapability(String capability)
指定された CAPABILITY 文字列がサーバーがアナウンスした CAPABILITY のリストの場合、 true を返します。 |
boolean |
isConnected()
Check whether this store is connected. |
protected boolean |
protocolConnect(String host,
int pport,
String user,
String password)
protocolConnect() の実装です。 |
void |
setPassword(String password)
この Store が最初に接続された(例えば Folderを開く為に接続を作成する時)後にその後の接続に使用されるパスワードを設定します。 |
void |
setQuota(Quota quota)
Set the quotas for the quota root specified in the quota argument. |
void |
setUsername(String user)
この Store が最初に接続された(例えば Folder を開く為に接続を作成する時)後にその後の接続に使用されるユーザ名を設定します。 |
| クラス javax.mail.Store から継承されたメソッド |
|---|
addFolderListener, addStoreListener, notifyFolderListeners, notifyFolderRenamedListeners, notifyStoreListeners, removeFolderListener, removeStoreListener |
| クラス javax.mail.Service から継承されたメソッド |
|---|
addConnectionListener, connect, connect, connect, connect, getURLName, notifyConnectionListeners, queueEvent, removeConnectionListener, setConnected, setURLName, toString |
| クラス java.lang.Object から継承されたメソッド |
|---|
clone, equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| コンストラクタの詳細 |
|---|
public IMAPStore(Session session,
URLName url)
public IMAPStore(Session session,
URLName url,
String name,
int defaultPort,
boolean isSSL)
| メソッドの詳細 |
|---|
protected boolean protocolConnect(String host,
int pport,
String user,
String password)
throws MessagingException
Service 内の protocolConnecthost - 接続先のホスト名pport - 使用するポート (-1 はデフォルトポートの使用を意味する)user - ログインするユーザ名password - ユーザのパスワード
AuthenticationFailedException - 認証の障害の場合
MessagingException - 認証以外の障害の場合public void setUsername(String user)
幾つかの IMAP サーバは今後の接続の為に、より効率的な認証に使用する事ができるIDを認証に提供する可能性があります。 ここで説明されなかったサーバ特有の方法でこの認証IDを提供します。
殆どのアプリケーションは、このメソッドを使用する必要はありません。
public void setPassword(String password)
public boolean hasCapability(String capability)
throws MessagingException
true を返します。
MessagingExceptionpublic final boolean isConnected()
Service 内の isConnected
public final void close()
throws MessagingException
Service 内の closeMessagingException - クローズ中のエラーの場合ConnectionEvent
protected final void finalize()
throws Throwable
Service の記述:
Service 内の finalizeThrowable
public final Folder getDefaultFolder()
throws MessagingException
Store 内の getDefaultFolderMessagingException
public final Folder getFolder(String name)
throws MessagingException
Store 内の getFoldername - Folder の名前。
一部の Store において、名前が階層区切り文字で始まる場合、絶対パスとなることがあります。
そうでない場合は、名前はこの名前空間の 'ルート' への相対名と解釈されます。
MessagingExceptionFolder.exists(),
Folder.create(int)
public final Folder getFolder(URLName url)
throws MessagingException
Store 内の getFolderurl - フォルダを示す URLName
MessagingExceptionURLName
public final Folder[] getPersonalNamespaces()
throws MessagingException
Store 内の getPersonalNamespacesMessagingException
public final Folder[] getUserNamespaces(String user)
throws MessagingException
Store 内の getUserNamespacesMessagingException
public final Folder[] getSharedNamespaces()
throws MessagingException
Store 内の getSharedNamespacesMessagingException
public final Quota[] getQuota(String root)
throws MessagingException
QuotaAwareStore 内の getQuotaroot - クオータルートの名前
MessagingException - サーバが QUOTA 拡張をサポートしない場合
public void setQuota(Quota quota)
throws MessagingException
getQuota method, but it need not be.
QuotaAwareStore 内の setQuotaquota - the quota to set
MessagingException - if the server doesn't support the QUOTA extensionpublic final void handleResponse(com.sun.mail.iap.Response r)
com.sun.mail.iap.ResponseHandler 内の handleResponse
|
||||||||||
| 前のクラス 次のクラス | フレームあり フレームなし | |||||||||
| 概要: 入れ子 | フィールド | コンストラクタ | メソッド | 詳細: フィールド | コンストラクタ | メソッド | |||||||||