クラス AbstractRequestAttributes

java.lang.ObjectSE
org.springframework.web.context.request.AbstractRequestAttributes
実装されたすべてのインターフェース:
RequestAttributes
既知の直属サブクラス
ServletRequestAttributes

public abstract class AbstractRequestAttributes extends ObjectSE implements RequestAttributes
RequestAttributes 実装の抽象サポートクラス。リクエスト固有の破棄コールバックおよびアクセスされたセッション属性の更新のためのリクエスト完了メカニズムを提供します。
導入:
2.0
作成者:
Juergen Hoeller
関連事項:
  • フィールドの詳細

    • requestDestructionCallbacks

      protected final MapSE<StringSE,RunnableSE> requestDestructionCallbacks
      属性名 String から破棄コールバック Runnable へのマップ。
  • コンストラクターの詳細

    • AbstractRequestAttributes

      public AbstractRequestAttributes()
  • メソッドの詳細

    • requestCompleted

      public void requestCompleted()
      リクエストが完了したことを通知します。

      すべてのリクエスト破棄コールバックを実行し、リクエスト処理中にアクセスされたセッション属性を更新します。

    • isRequestActive

      protected final boolean isRequestActive()
      元のリクエストがまだアクティブかどうかを確認します。
      関連事項:
    • registerRequestDestructionCallback

      protected final void registerRequestDestructionCallback(StringSE name, RunnableSE callback)
      リクエストの補完後に実行されるように、指定されたコールバックを登録します。
      パラメーター:
      name - コールバックを登録する属性の名前
      callback - 破棄のために実行されるコールバック
    • removeRequestDestructionCallback

      protected final void removeRequestDestructionCallback(StringSE name)
      指定された属性のリクエスト破棄コールバックがあれば削除します。
      パラメーター:
      name - コールバックを削除する属性の名前
    • updateAccessedSessionAttributes

      protected abstract void updateAccessedSessionAttributes()
      リクエストの処理中にアクセスされたすべてのセッション属性を更新して、潜在的に更新された状態を基礎となるセッションマネージャーに公開します。