类 SanitizableData
java.lang.Object
org.springframework.boot.actuate.endpoint.SanitizableData
Value object that represents the data that can be used by a
SanitizingFunction.- 从以下版本开始:
- 2.6.0
- 作者:
- Madhura Bhave, Rohan Goyal
-
字段概要
字段 -
构造器概要
构造器构造器说明SanitizableData(PropertySource<?> propertySource, String key, Object value) Create a newSanitizableDatainstance. -
方法概要
修饰符和类型方法说明getKey()Return the key of the data.Return the property source that provided the data ornullIf the data was not from aPropertySource.getValue()Return the value of the data.Return a newSanitizableDatainstance with sanitized value.Return a newSanitizableDatainstance with a different value.
-
字段详细资料
-
SANITIZED_VALUE
Represents a sanitized value.- 另请参阅:
-
-
构造器详细资料
-
SanitizableData
Create a newSanitizableDatainstance.- 参数:
propertySource- the property source that provided the data ornull.key- the data keyvalue- the data value
-
-
方法详细资料
-
getPropertySource
Return the property source that provided the data ornullIf the data was not from aPropertySource.- 返回:
- the property source that provided the data
-
getKey
Return the key of the data.- 返回:
- the data key
-
getValue
Return the value of the data.- 返回:
- the data value
-
withSanitizedValue
Return a newSanitizableDatainstance with sanitized value.- 返回:
- a new sanitizable data instance.
- 从以下版本开始:
- 3.1.0
-
withValue
Return a newSanitizableDatainstance with a different value.- 参数:
value- the new value (oftenSANITIZED_VALUE- 返回:
- a new sanitizable data instance
-