public interface AttributeHolder
Modifier and Type | Method and Description |
---|---|
default Optional<Object> |
getAttribute(CharSequence name)
Obtain the value of an attribute on the HTTP method.
|
default <T> Optional<T> |
getAttribute(CharSequence name,
Class<T> type)
Obtain the value of an attribute on the HTTP method.
|
ConvertibleValues<Object> |
getAttributes()
A
MutableConvertibleValues of the attributes for object. |
@NonNull ConvertibleValues<Object> getAttributes()
A MutableConvertibleValues
of the attributes for object.
@NonNull default Optional<Object> getAttribute(CharSequence name)
name
- The name of the attributeOptional
value@NonNull default <T> Optional<T> getAttribute(CharSequence name, Class<T> type)
T
- type Genericname
- The name of the attributetype
- The required typeOptional
value