Top Description Constructors Methods
org.springframework.messaging.handler.annotation.reactive

public Class HeadersMethodArgumentResolver

extends Object
implements SyncHandlerMethodArgumentResolver
Class Inheritance
All Implemented Interfaces
org.springframework.messaging.handler.invocation.reactive.SyncHandlerMethodArgumentResolver, org.springframework.messaging.handler.invocation.reactive.HandlerMethodArgumentResolver
Imports
java.lang.reflect.Method, java.util.Map, org.springframework.core.MethodParameter, org.springframework.lang.Nullable, org.springframework.messaging.Message, .MessageHeaders, org.springframework.messaging.handler.annotation.Headers, org.springframework.messaging.handler.invocation.reactive.SyncHandlerMethodArgumentResolver, org.springframework.messaging.support.MessageHeaderAccessor, org.springframework.util.ReflectionUtils

Argument resolver for headers. Resolves the following method parameters:
Author
Rossen Stoyanchev
Since
5.2

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
public Object
resolveArgumentValue(MethodParameter
the method parameter
parameter
,
Message<?>
the currently processed message
message
)

Implements org.springframework.messaging.handler.invocation.reactive.SyncHandlerMethodArgumentResolver.resolveArgumentValue.

Resolve the value for the method parameter synchronously.
public boolean
supportsParameter(MethodParameter
the method parameter to check
parameter
)

Implements org.springframework.messaging.handler.invocation.reactive.HandlerMethodArgumentResolver.supportsParameter.

Whether the given method parameter is supported by this resolver.
Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Constructor Detail

HeadersMethodArgumentResolverback to summary
public HeadersMethodArgumentResolver()

Method Detail

resolveArgumentValueback to summary
public Object resolveArgumentValue(MethodParameter parameter, Message<?> message)

Implements org.springframework.messaging.handler.invocation.reactive.SyncHandlerMethodArgumentResolver.resolveArgumentValue.

Doc from org.springframework.messaging.handler.invocation.reactive.SyncHandlerMethodArgumentResolver.resolveArgumentValue.

Resolve the value for the method parameter synchronously.

Parameters
parameter:MethodParameter

the method parameter

message:Message<?>

the currently processed message

Returns:Object

the resolved value, if any

Annotations
@Override
@Nullable
supportsParameterback to summary
public boolean supportsParameter(MethodParameter parameter)

Implements org.springframework.messaging.handler.invocation.reactive.HandlerMethodArgumentResolver.supportsParameter.

Doc from org.springframework.messaging.handler.invocation.reactive.HandlerMethodArgumentResolver.supportsParameter.

Whether the given method parameter is supported by this resolver.

Parameters
parameter:MethodParameter

the method parameter to check

Returns:boolean

true if this resolver supports the supplied parameter; false otherwise

Annotations
@Override