org.springframework.messaging.rsocket.annotation.support

## Class RSocketRequesterMethodArgumentResolver

- java.lang.Object
- - org.springframework.messaging.rsocket.annotation.support.RSocketRequesterMethodArgumentResolver

- All Implemented Interfaces:
    HandlerMethodArgumentResolver

      public class RSocketRequesterMethodArgumentResolver
      extends Object
      implements HandlerMethodArgumentResolver

  Resolves arguments of type `RSocket` that can be used for making requests to the remote peer.
  Since:
    5.2
  Author:
    Rossen Stoyanchev

- - ### Field Summary

    Fields
    Modifier and Type | Field and Description
    --- | ---
    `static String` | `RSOCKET_REQUESTER_HEADER` Message header name that is expected to have the `RSocket` to initiate new interactions to the remote peer with.

  - ### Constructor Summary

    Constructors
    Constructor and Description
    `RSocketRequesterMethodArgumentResolver()`

  - ### Method Summary

    All Methods Instance Methods Concrete Methods
    Modifier and Type | Method and Description
    --- | ---
    `reactor.core.publisher.Mono<Object>` | `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.

    - ### Methods inherited from class java.lang.Object

      `clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

- - ### Field Detail

    - #### RSOCKET_REQUESTER_HEADER

          public static final String RSOCKET_REQUESTER_HEADER

      Message header name that is expected to have the `RSocket` to initiate new interactions to the remote peer with.
      See Also:
        Constant Field Values

  - ### Constructor Detail

    - #### RSocketRequesterMethodArgumentResolver

          public RSocketRequesterMethodArgumentResolver()

  - ### Method Detail

    - #### supportsParameter

          public boolean supportsParameter(MethodParameter parameter)

      Description copied from interface: `HandlerMethodArgumentResolver`
      Whether the given method parameter is supported by this resolver.
      Specified by:
        `supportsParameter` in interface `HandlerMethodArgumentResolver`
      Parameters:
        `parameter` - the method parameter to check
      Returns:
        `true` if this resolver supports the supplied parameter; `false` otherwise

    - #### resolveArgument

          public reactor.core.publisher.Mono<Object> resolveArgument(MethodParameter parameter,
                                                                     Message<?> message)

      Description copied from interface: `HandlerMethodArgumentResolver`
      Resolves a method parameter into an argument value from a given message.
      Specified by:
        `resolveArgument` in interface `HandlerMethodArgumentResolver`
      Parameters:
        `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 message
      Returns:
        `Mono` for the argument value, possibly empty