public class RSocketRequesterMethodArgumentResolver extends java.lang.Object implements HandlerMethodArgumentResolver
RSocket
that can be used for making
requests to the remote peer.Modifier and Type | Field and Description |
---|---|
static java.lang.String |
RSOCKET_REQUESTER_HEADER
Message header name that is expected to have the
RSocket to
initiate new interactions to the remote peer with. |
Constructor and Description |
---|
RSocketRequesterMethodArgumentResolver() |
Modifier and Type | Method and Description |
---|---|
<any> |
resolveArgument(MethodParameter parameter,
Message<?> message)
Resolves a method parameter into an argument value from a given message.
|
boolean |
supportsParameter(MethodParameter parameter)
Whether the given method parameter is
supported by this resolver.
|
public static final java.lang.String RSOCKET_REQUESTER_HEADER
RSocket
to
initiate new interactions to the remote peer with.public RSocketRequesterMethodArgumentResolver()
public boolean supportsParameter(MethodParameter parameter)
HandlerMethodArgumentResolver
supportsParameter
in interface HandlerMethodArgumentResolver
parameter
- the method parameter to checktrue
if this resolver supports the supplied parameter;
false
otherwisepublic <any> resolveArgument(MethodParameter parameter, Message<?> message)
HandlerMethodArgumentResolver
resolveArgument
in interface HandlerMethodArgumentResolver
parameter
- the method parameter to resolve.
This parameter must have previously been passed to
HandlerMethodArgumentResolver.supportsParameter(org.springframework.core.MethodParameter)
which must have returned true
.message
- the currently processed messageMono
for the argument value, possibly empty