Class HeadersMethodArgumentResolver
java.lang.Object
org.springframework.messaging.handler.annotation.reactive.HeadersMethodArgumentResolver
- All Implemented Interfaces:
HandlerMethodArgumentResolver
,SyncHandlerMethodArgumentResolver
public class HeadersMethodArgumentResolver
extends Object
implements SyncHandlerMethodArgumentResolver
Argument resolver for headers. Resolves the following method parameters:
- Since:
- 5.2
- Author:
- Rossen Stoyanchev
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionresolveArgumentValue
(MethodParameter parameter, Message<?> message) Resolve the value for the method parameter synchronously.boolean
supportsParameter
(MethodParameter parameter) Whether the given method parameter is supported by this resolver.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.springframework.messaging.handler.invocation.reactive.SyncHandlerMethodArgumentResolver
resolveArgument
-
Constructor Details
-
HeadersMethodArgumentResolver
public HeadersMethodArgumentResolver()
-
-
Method Details
-
supportsParameter
Description copied from interface:HandlerMethodArgumentResolver
Whether the given method parameter is supported by this resolver.- Specified by:
supportsParameter
in interfaceHandlerMethodArgumentResolver
- Parameters:
parameter
- the method parameter to check- Returns:
true
if this resolver supports the supplied parameter;false
otherwise
-
resolveArgumentValue
Description copied from interface:SyncHandlerMethodArgumentResolver
Resolve the value for the method parameter synchronously.- Specified by:
resolveArgumentValue
in interfaceSyncHandlerMethodArgumentResolver
- Parameters:
parameter
- the method parametermessage
- the currently processed message- Returns:
- the resolved value, if any
-