public abstract class AbstractHttpSessionManager extends Object implements HttpSessionManager
HttpSessionManager の抽象実装です。
インタフェースを実装するクラスは、この抽象実装を継承すると便利です。| 修飾子 | コンストラクタと説明 |
|---|---|
protected |
AbstractHttpSessionManager()
HttpSessionManager の抽象実装を構築します。 |
| 修飾子とタイプ | メソッドと説明 |
|---|---|
abstract String[] |
getAllIds()
現在有効なすべての HttpSession のセッションIDを返します。
|
abstract long |
getCreationTime(String id)
指定のIDに関連付けられているHTTPセッションが
作られた時刻を返します。
|
abstract long |
getLastAccessedTime(String id)
指定のIDに関連付けられてるセッションに関連したリクエストをクライアントが送った最後の時刻を返します。
|
int |
getLength()
現在有効な HttpSession の数を返します。
|
abstract int |
getMaxInactiveInterval(String id)
指定のIDに関連付けられてるセッションを保ち続ける最大の秒数を返します。
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetCountprotected AbstractHttpSessionManager()
HttpSessionManager の抽象実装を構築します。public int getLength()
public abstract String[] getAllIds()
HttpSession.getId() が
返す値です。getAllIds インタフェース内 HttpSessionManagerpublic abstract long getCreationTime(String id) throws NoSuchSessionException, UnsupportedOperationException
HttpSession.getCreationTime()
が返す値です。
指定のIDに関連付けられている有効なHTTPセッションがない場合、
NoSuchSessionException をスローします。
このインタフェースの実装が、このメソッドをサポートしない場合、
UnsupportedOperationException をスローします。
getCreationTime インタフェース内 HttpSessionManagerid - セッションIDNoSuchSessionException - 指定のIDに関連付けられた有効なセッションを見つけられなかった場合UnsupportedOperationException - このメソッドがサポートされない場合public abstract long getLastAccessedTime(String id) throws NoSuchSessionException, UnsupportedOperationException
HttpSession.getLastAccessedTime()
が返す値です。
指定のIDに関連付けられている有効なHTTPセッションがない場合、
NoSuchSessionException をスローします。
このインタフェースの実装が、このメソッドをサポートしない場合、
UnsupportedOperationException をスローします。
getLastAccessedTime インタフェース内 HttpSessionManagerid - セッションIDNoSuchSessionException - 指定のIDに関連付けられた有効なセッションを見つけられなかった場合UnsupportedOperationException - このメソッドがサポートされない場合public abstract int getMaxInactiveInterval(String id) throws NoSuchSessionException, UnsupportedOperationException
HttpSession.getMaxInactiveInterval()
が返す値です。
指定のIDに関連付けられている有効なHTTPセッションがない場合、
NoSuchSessionException をスローします。
このインタフェースの実装が、このメソッドをサポートしない場合、
UnsupportedOperationException をスローします。
getMaxInactiveInterval インタフェース内 HttpSessionManagerid - セッションIDNoSuchSessionException - 指定のIDに関連付けられた有効なセッションを見つけられなかった場合UnsupportedOperationException - このメソッドがサポートされない場合Copyright © 2012 NTT DATA INTRAMART CORPORATION