クラス ErrorAttributeOptions
java.lang.ObjectSE
org.springframework.boot.web.error.ErrorAttributeOptions
ErrorAttributes
の内容を制御するオプション。- 導入:
- 2.3.0
- 作成者:
- Scott Frederick, Phillip Webb
ネストされたクラスのサマリー
ネストされたクラス方法の概要
修飾子と型メソッド説明static ErrorAttributeOptions
defaults()
デフォルトでErrorAttributeOptions
を作成します。excluding
(ErrorAttributeOptions.Include... excludes) 指定された属性ErrorAttributeOptions.Include
オプションを除外するErrorAttributeOptions
を返します。エラーレスポンスに属性を含めるためのすべてのオプションを取得します。including
(ErrorAttributeOptions.Include... includes) 指定された属性ErrorAttributeOptions.Include
オプションを含むErrorAttributeOptions
を返します。boolean
isIncluded
(ErrorAttributeOptions.Include include) エラーレスポンスに指定された属性を含めるためのオプションを取得します。static ErrorAttributeOptions
of
(CollectionSE<ErrorAttributeOptions.Include> includes) 指定された属性ErrorAttributeOptions.Include
オプションを含むErrorAttributeOptions
を作成します。static ErrorAttributeOptions
of
(ErrorAttributeOptions.Include... includes) 指定された属性ErrorAttributeOptions.Include
オプションを含むErrorAttributeOptions
を作成します。void
retainIncluded
(MapSE<StringSE, ObjectSE> map) このオプションセットに含まれていない要素を指定されたマップから削除します。
メソッドの詳細
isIncluded
エラーレスポンスに指定された属性を含めるためのオプションを取得します。- パラメーター:
include
- 取得するエラー属性- 戻り値:
-
Include
属性がエラーレスポンスに含まれている場合はtrue
、それ以外の場合はfalse
getIncludes
エラーレスポンスに属性を含めるためのすべてのオプションを取得します。- 戻り値:
- オプション
including
指定された属性ErrorAttributeOptions.Include
オプションを含むErrorAttributeOptions
を返します。- パラメーター:
includes
- 含めるエラー属性- 戻り値:
ErrorAttributeOptions
excluding
指定された属性ErrorAttributeOptions.Include
オプションを除外するErrorAttributeOptions
を返します。- パラメーター:
excludes
- 除外するエラー属性- 戻り値:
ErrorAttributeOptions
retainIncluded
このオプションセットに含まれていない要素を指定されたマップから削除します。- パラメーター:
map
- 更新する地図- 導入:
- 3.2.7
defaults
デフォルトでErrorAttributeOptions
を作成します。- 戻り値:
ErrorAttributeOptions
of
指定された属性ErrorAttributeOptions.Include
オプションを含むErrorAttributeOptions
を作成します。- パラメーター:
includes
- 含めるエラー属性- 戻り値:
ErrorAttributeOptions
of
指定された属性ErrorAttributeOptions.Include
オプションを含むErrorAttributeOptions
を作成します。- パラメーター:
includes
- 含めるエラー属性- 戻り値:
ErrorAttributeOptions