Class RSocketRequestValues
java.lang.Object
org.springframework.messaging.rsocket.service.RSocketRequestValues
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
-
Nested Class Summary
Nested Classes -
Constructor Summary
ConstructorsConstructorDescriptionRSocketRequestValues(@Nullable String route, @Nullable List<Object> routeVariables, @Nullable org.springframework.messaging.rsocket.service.RSocketRequestValues.MetadataHelper metadataHelper, @Nullable Object payloadValue, @Nullable Publisher<?> payload, @Nullable ParameterizedTypeReference<?> payloadElementType) -
Method Summary
Modifier and TypeMethodDescriptionstatic RSocketRequestValues.BuilderReturn the metadata entries forRSocketRequester.MetadataSpec.metadata(Object, MimeType).Return the request payload as a Publisher.Return the element type for a Publisher payload.Return the request payload as a value to be serialized, if set.getRoute()Return the route value forroute.Object[]Return the route variables forroute.
-
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 ParameterizedTypeReference<?> payloadElementType)
-
-
Method Details
-
getRoute
-
getRouteVariables
-
getMetadata
Return the metadata entries forRSocketRequester.MetadataSpec.metadata(Object, MimeType). -
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
Return the request payload as a Publisher.This is mutually exclusive with
getPayloadValue(). Only one of the two or neither is set. -
getPayloadElementType
Return the element type for a Publisher payload. -
builder
-