Class MetadataArgumentResolver
java.lang.Object
org.springframework.messaging.rsocket.service.MetadataArgumentResolver
- All Implemented Interfaces:
RSocketServiceArgumentResolver
RSocketServiceArgumentResolver
for metadata entries.
Supports a sequence of an Object
parameter for the metadata value,
followed by a MimeType
parameter for the metadata mime type.
This should be ordered last to give other, more specific resolvers a chance to resolve the argument.
- Since:
- 6.0
- Author:
- Rossen Stoyanchev
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionboolean
resolve
(Object argument, MethodParameter parameter, RSocketRequestValues.Builder requestValues) Resolve the argument value.
-
Constructor Details
-
MetadataArgumentResolver
public MetadataArgumentResolver()
-
-
Method Details
-
resolve
public boolean resolve(@Nullable Object argument, MethodParameter parameter, RSocketRequestValues.Builder requestValues) Description copied from interface:RSocketServiceArgumentResolver
Resolve the argument value.- Specified by:
resolve
in interfaceRSocketServiceArgumentResolver
- Parameters:
argument
- the argument valueparameter
- the method parameter for the argumentrequestValues
- builder to add RSocket request values to- Returns:
true
if the argument was resolved,false
otherwise
-