public abstract class AbstractRequestAttributes extends ObjectSE implements RequestAttributes
requestCompleted()
修飾子と型 | フィールドと説明 |
---|---|
protected MapSE<StringSE, RunnableSE> | requestDestructionCallbacks 属性名 String から破棄コールバック Runnable へのマップ。 |
REFERENCE_REQUEST, REFERENCE_SESSION, SCOPE_REQUEST, SCOPE_SESSION
コンストラクターと説明 |
---|
AbstractRequestAttributes() |
修飾子と型 | メソッドと説明 |
---|---|
protected boolean | isRequestActive() 元のリクエストがまだアクティブかどうかを確認します。 |
protected void | registerRequestDestructionCallback(StringSE name, RunnableSE callback) リクエストの補完後に実行されるように、指定されたコールバックを登録します。 |
protected void | removeRequestDestructionCallback(StringSE name) 指定された属性のリクエスト破棄コールバックがあれば削除します。 |
void | requestCompleted() リクエストが完了したことを通知します。 |
protected abstract void | updateAccessedSessionAttributes() リクエストの処理中にアクセスされたすべてのセッション属性を更新して、潜在的に更新された状態を基礎となるセッションマネージャーに公開します。 |
cloneSE, equalsSE, finalizeSE, getClassSE, hashCodeSE, notifySE, notifyAllSE, toStringSE, waitSE, waitSE, waitSE
getAttribute, getAttributeNames, getSessionId, getSessionMutex, registerDestructionCallback, removeAttribute, resolveReference, setAttribute
protected final MapSE<StringSE,RunnableSE> requestDestructionCallbacks
public void requestCompleted()
すべてのリクエスト破棄コールバックを実行し、リクエスト処理中にアクセスされたセッション属性を更新します。
protected final boolean isRequestActive()
requestCompleted()
protected final void registerRequestDestructionCallback(StringSE name, RunnableSE callback)
name
- コールバックを登録する属性の名前 callback
- 破棄のために実行されるコールバック protected final void removeRequestDestructionCallback(StringSE name)
name
- コールバックを削除する属性の名前 protected abstract void updateAccessedSessionAttributes()