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