Class RSocketRequestValues

java.lang.Object
org.springframework.messaging.rsocket.service.RSocketRequestValues

public final class RSocketRequestValues extends Object
Container for RSocket request values extracted from an @RSocketExchange-annotated method and argument values passed to it. This is then used to define a request via RSocketRequester.
Since:
6.0
Author:
Rossen Stoyanchev
  • Constructor Details

    • RSocketRequestValues

      public RSocketRequestValues(@Nullable String route, @Nullable List<Object> routeVariables, @Nullable org.springframework.messaging.rsocket.service.RSocketRequestValues.MetadataHelper metadataHelper, @Nullable Object payloadValue, @Nullable Publisher<?> payload, @Nullable org.springframework.core.ParameterizedTypeReference<?> payloadElementType)
  • Method Details

    • getRoute

      @Nullable public String getRoute()
      Return the route value for route.
    • getRouteVariables

      public Object[] getRouteVariables()
      Return the route variables for route.
    • getMetadata

      public Map<Object,org.springframework.util.MimeType> getMetadata()
    • getPayloadValue

      @Nullable public Object getPayloadValue()
      Return the request payload as a value to be serialized, if set.

      This is mutually exclusive with getPayload(). Only one of the two or neither is set.

    • getPayload

      @Nullable public Publisher<?> getPayload()
      Return the request payload as a Publisher.

      This is mutually exclusive with getPayloadValue(). Only one of the two or neither is set.

    • getPayloadElementType

      @Nullable public org.springframework.core.ParameterizedTypeReference<?> getPayloadElementType()
      Return the element type for a Publisher payload.
    • builder

      public static RSocketRequestValues.Builder builder(@Nullable String route)