クラス HttpStatusAccessDeniedHandler

java.lang.ObjectSE
org.springframework.security.web.access.HttpStatusAccessDeniedHandler
実装されたすべてのインターフェース:
AccessDeniedHandler

public final class HttpStatusAccessDeniedHandler extends ObjectSE implements AccessDeniedHandler
レスポンスとして HttpStatus を送信する AccessDeniedHandler
導入:
6.5
  • コンストラクターの概要

    コンストラクター
    コンストラクター
    説明
    HttpStatusAccessDeniedHandler(org.springframework.http.HttpStatus httpStatus)
    新しいインスタンスを作成します。
  • メソッドのサマリー

    修飾子と型
    メソッド
    説明
    void
    handle(jakarta.servlet.http.HttpServletRequest request, jakarta.servlet.http.HttpServletResponse response, AccessDeniedException accessDeniedException)
    アクセス拒否エラーを処理します。

    クラス java.lang.ObjectSE から継承されたメソッド

    clone, equalsSE, finalize, getClass, hashCode, notify, notifyAll, toString, wait, waitSE, waitSE
  • コンストラクターの詳細

    • HttpStatusAccessDeniedHandler

      public HttpStatusAccessDeniedHandler(org.springframework.http.HttpStatus httpStatus)
      新しいインスタンスを作成します。
      パラメーター:
      httpStatus - 設定する HttpStatus
  • メソッドの詳細

    • handle

      public void handle(jakarta.servlet.http.HttpServletRequest request, jakarta.servlet.http.HttpServletResponse response, AccessDeniedException accessDeniedException) throws IOExceptionSE, jakarta.servlet.ServletException
      インターフェースからコピーされた説明: AccessDeniedHandler
      アクセス拒否エラーを処理します。
      次で指定:
      インターフェース AccessDeniedHandlerhandle 
      パラメーター:
      request - AccessDeniedException が発生したリクエスト
      response - ユーザーエージェントに障害を通知できるようにするため
      accessDeniedException - 呼び出しの原因となった例外
      例外:
      IOExceptionSE - IOException が発生した場合
      jakarta.servlet.ServletException - ServletException の場合