Class RSocketRequestValues.Builder
java.lang.Object
org.springframework.messaging.rsocket.service.RSocketRequestValues.Builder
- Enclosing class:
- RSocketRequestValues
Builder for
RSocketRequestValues
.-
Method Summary
Modifier and TypeMethodDescriptionaddMetadata
(Object metadata) Add a metadata entry.addMimeType
(MimeType mimeType) Set the mime type for a metadata entry.addRouteVariable
(Object variable) Add a route variable.build()
Build theRSocketRequestValues
instance.<T,
P extends Publisher<T>>
RSocketRequestValues.BuildersetPayload
(P payload, ParameterizedTypeReference<T> elementTye) Set the request payload value to be serialized.setPayloadValue
(Object payloadValue) Set the request payload as a concrete value to be serialized.Set the route for the request.
-
Method Details
-
setRoute
Set the route for the request. -
addRouteVariable
Add a route variable. -
addMetadata
Add a metadata entry. This must be followed by a corresponding call toaddMimeType(MimeType)
. -
addMimeType
Set the mime type for a metadata entry. This must be preceded by a call toaddMetadata(Object)
. -
setPayloadValue
Set the request payload as a concrete value to be serialized.This is mutually exclusive with, and resets any previously set payload Publisher.
-
setPayload
public <T,P extends Publisher<T>> RSocketRequestValues.Builder setPayload(P payload, ParameterizedTypeReference<T> elementTye) Set the request payload value to be serialized. -
build
Build theRSocketRequestValues
instance.
-