Package io.micronaut.core.attr
Interface AttributeHolder
- All Known Subinterfaces:
ApplicationContext
,BeanContext
,ByteBodyHttpResponse<B>
,ConfigurableApplicationContext
,ConfigurableBeanContext
,ConstructorInvocationContext<T>
,FullHttpRequest<B>
,HttpMessage<B>
,HttpRequest<B>
,HttpResponse<B>
,InitializableBeanContext
,InvocationContext<T,
,R> MethodInvocationContext<T,
,R> MutableAttributeHolder
,MutableHttpMessage<B>
,MutableHttpRequest<B>
,MutableHttpResponse<B>
,PushCapableHttpRequest<B>
,ServerHttpRequest<B>
- All Known Implementing Classes:
AbstractNettyHttpRequest
,ByteBodyHttpResponseWrapper
,ConstructorInterceptorChain
,DefaultApplicationContext
,DefaultBeanContext
,FullNettyClientHttpResponse
,HttpMessageWrapper
,HttpRequestWrapper
,HttpResponseAdapter
,HttpResponseWrapper
,InterceptorChain
,MethodInterceptorChain
,NettyClientHttpRequest
,NettyHttpRequest
,NettyMutableHttpResponse
,SimpleHttpRequest
public interface AttributeHolder
An interface for objects that have attributes.
- Since:
- 1.0
- Author:
- graemerocher
-
Method Summary
Modifier and TypeMethodDescriptiongetAttribute
(CharSequence name) Obtain the value of an attribute on the HTTP method.getAttribute
(CharSequence name, Class<T> type) Obtain the value of an attribute on the HTTP method.AMutableConvertibleValues
of the attributes for object.
-
Method Details
-
getAttributes
A
MutableConvertibleValues
of the attributes for object.- Returns:
- The attributes of the object
-
getAttribute
Obtain the value of an attribute on the HTTP method.- Parameters:
name
- The name of the attribute- Returns:
- An
Optional
value
-
getAttribute
Obtain the value of an attribute on the HTTP method.- Type Parameters:
T
- type Generic- Parameters:
name
- The name of the attributetype
- The required type- Returns:
- An
Optional
value
-