パッケージ org.springframework.web

クラス HttpSessionRequiredException

実装されたすべてのインターフェース:
SerializableSE

public class HttpSessionRequiredException extends ServletExceptionEE
HTTP リクエストハンドラーが既存のセッションを必要とする場合にスローされる例外。
導入:
2.0
作成者:
Juergen Hoeller
関連事項:
  • コンストラクターの詳細

    • HttpSessionRequiredException

      public HttpSessionRequiredException(StringSE msg)
      新しい HttpSessionRequiredException を作成します。
      パラメーター:
      msg - 詳細メッセージ
    • HttpSessionRequiredException

      public HttpSessionRequiredException(StringSE msg, StringSE expectedAttribute)
      新しい HttpSessionRequiredException を作成します。
      パラメーター:
      msg - 詳細メッセージ
      expectedAttribute - 予期されるセッション属性の名前
      導入:
      4.3
  • メソッドの詳細

    • getExpectedAttribute

      @Nullable public StringSE getExpectedAttribute()
      必要なセッション属性がある場合は、その名前を返します。
      導入:
      4.3