クラス AbstractErrorController

java.lang.ObjectSE
org.springframework.boot.webmvc.autoconfigure.error.AbstractErrorController
実装されているすべてのインターフェース:
ErrorController
既知の直属サブクラス
BasicErrorController

public abstract class AbstractErrorController extends ObjectSE implements ErrorController
エラー @Controller 実装の抽象基本クラス。
導入:
4.0.0
作成者:
Dave Syer, Phillip Webb, Scott Frederick, Moritz Halbritter
関連事項:
  • コンストラクターの詳細

  • メソッドの詳細

    • getErrorAttributes

      protected MapSE<StringSE, @Nullable ObjectSE> getErrorAttributes(HttpServletRequestEE request, ErrorAttributeOptions options)
    • getTraceParameter

      protected boolean getTraceParameter(HttpServletRequestEE request)
      トレースパラメーターが設定されているかどうかを返します。
      パラメーター:
      request - リクエスト
      戻り値:
      トレースパラメーターが設定されているかどうか
    • getMessageParameter

      protected boolean getMessageParameter(HttpServletRequestEE request)
      メッセージパラメーターが設定されているかどうかを返します。
      パラメーター:
      request - リクエスト
      戻り値:
      メッセージパラメーターが設定されているかどうか
    • getErrorsParameter

      protected boolean getErrorsParameter(HttpServletRequestEE request)
      エラーパラメーターが設定されているかどうかを返します。
      パラメーター:
      request - リクエスト
      戻り値:
      エラーパラメーターが設定されているかどうか
    • getPathParameter

      protected boolean getPathParameter(HttpServletRequestEE request)
      パスパラメーターが設定されているかどうかを返します。
      パラメーター:
      request - リクエスト
      戻り値:
      パスパラメーターが設定されているかどうか
    • getBooleanParameter

      protected boolean getBooleanParameter(HttpServletRequestEE request, StringSE parameterName)
    • getStatus

      protected HttpStatus getStatus(HttpServletRequestEE request)
    • resolveErrorView

      protected @Nullable ModelAndView resolveErrorView(HttpServletRequestEE request, HttpServletResponseEE response, HttpStatus status, MapSE<StringSE,ObjectSE> model)
      特定のエラービューを解決します。デフォルトでは、このメソッドは ErrorViewResolvers に委譲します。
      パラメーター:
      request - リクエスト
      response - レスポンス
      status - HTTP ステータス
      model - 提案されたモデル
      戻り値:
      デフォルトを使用する必要がある場合は、特定の ModelAndView または null