Top Description Constructors Methods
org.springframework.messaging.rsocket.service

public Class MetadataArgumentResolver

extends Object
implements RSocketServiceArgumentResolver
Class Inheritance
All Implemented Interfaces
org.springframework.messaging.rsocket.service.RSocketServiceArgumentResolver
Imports
org.springframework.core.MethodParameter, org.springframework.lang.Nullable, org.springframework.util.Assert, .MimeType

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.

Author
Rossen Stoyanchev
Since
6.0

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
public boolean
resolve(Object
the argument value
argument
,
MethodParameter
the method parameter for the argument
parameter
,
RSocketRequestValues.Builder
builder to add RSocket request values to
requestValues
)

Implements org.springframework.messaging.rsocket.service.RSocketServiceArgumentResolver.resolve.

Resolve the argument value.

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Constructor Detail

MetadataArgumentResolverback to summary
public MetadataArgumentResolver()

Method Detail

resolveback to summary
public boolean resolve(Object argument, MethodParameter parameter, RSocketRequestValues.Builder requestValues)

Implements org.springframework.messaging.rsocket.service.RSocketServiceArgumentResolver.resolve.

Doc from org.springframework.messaging.rsocket.service.RSocketServiceArgumentResolver.resolve.

Resolve the argument value.

Parameters
argument:Object

the argument value

parameter:MethodParameter

the method parameter for the argument

requestValues:RSocketRequestValues.Builder

builder to add RSocket request values to

Returns:boolean

true if the argument was resolved, false otherwise

Annotations
@Override