クラス AbstractErrorController
java.lang.ObjectSE
org.springframework.boot.webmvc.autoconfigure.error.AbstractErrorController
- 実装されているすべてのインターフェース:
ErrorController
- 既知の直属サブクラス
BasicErrorController
エラー
@Controller 実装の抽象基本クラス。- 導入:
- 4.0.0
- 作成者:
- Dave Syer, Phillip Webb, Scott Frederick, Moritz Halbritter
- 関連事項:
コンストラクターの概要
コンストラクターコンストラクター説明AbstractErrorController(ErrorAttributes errorAttributes) AbstractErrorController(ErrorAttributes errorAttributes, @Nullable ListSE<ErrorViewResolver> errorViewResolvers) メソッドのサマリー
修飾子と型メソッド説明protected booleangetBooleanParameter(HttpServletRequestEE request, StringSE parameterName) getErrorAttributes(HttpServletRequestEE request, ErrorAttributeOptions options) protected booleangetErrorsParameter(HttpServletRequestEE request) エラーパラメーターが設定されているかどうかを返します。protected booleangetMessageParameter(HttpServletRequestEE request) メッセージパラメーターが設定されているかどうかを返します。protected booleangetPathParameter(HttpServletRequestEE request) パスパラメーターが設定されているかどうかを返します。protected HttpStatusgetStatus(HttpServletRequestEE request) protected booleangetTraceParameter(HttpServletRequestEE request) トレースパラメーターが設定されているかどうかを返します。protected @Nullable ModelAndViewresolveErrorView(HttpServletRequestEE request, HttpServletResponseEE response, HttpStatus status, MapSE<StringSE, ObjectSE> model) 特定のエラービューを解決します。
コンストラクターの詳細
AbstractErrorController
AbstractErrorController
public AbstractErrorController(ErrorAttributes errorAttributes, @Nullable ListSE<ErrorViewResolver> errorViewResolvers)
メソッドの詳細
getErrorAttributes
protected MapSE<StringSE, @Nullable ObjectSE> getErrorAttributes(HttpServletRequestEE request, ErrorAttributeOptions options) getTraceParameter
トレースパラメーターが設定されているかどうかを返します。- パラメーター:
request- リクエスト- 戻り値:
- トレースパラメーターが設定されているかどうか
getMessageParameter
メッセージパラメーターが設定されているかどうかを返します。- パラメーター:
request- リクエスト- 戻り値:
- メッセージパラメーターが設定されているかどうか
getErrorsParameter
エラーパラメーターが設定されているかどうかを返します。- パラメーター:
request- リクエスト- 戻り値:
- エラーパラメーターが設定されているかどうか
getPathParameter
パスパラメーターが設定されているかどうかを返します。- パラメーター:
request- リクエスト- 戻り値:
- パスパラメーターが設定されているかどうか
getBooleanParameter
getStatus
resolveErrorView
protected @Nullable ModelAndView resolveErrorView(HttpServletRequestEE request, HttpServletResponseEE response, HttpStatus status, MapSE<StringSE, ObjectSE> model) 特定のエラービューを解決します。デフォルトでは、このメソッドはErrorViewResolversに委譲します。- パラメーター:
request- リクエストresponse- レスポンスstatus- HTTP ステータスmodel- 提案されたモデル- 戻り値:
- デフォルトを使用する必要がある場合は、特定の
ModelAndViewまたはnull