Interface ClientRequestBody
-
- All Implemented Interfaces:
public interface ClientRequestBody
ClientRequestBody wraps the `requestData` parameter of the HTTP call that triggered a ClientStartableFlow.
A ClientStartableFlow receives an instance of this interface, which can be used to retrieve the request body.
-
-
Method Summary
Modifier and Type Method Description abstract String
getRequestBody()
Gets the request body for the ClientStartableFlow. abstract <T> T
getRequestBodyAs(@NotNull() MarshallingService marshallingService, @NotNull() Class<T> clazz)
Gets the request body and deserializes it into the given type, using a MarshallingService. abstract <T> List<T>
getRequestBodyAsList(@NotNull() MarshallingService marshallingService, @NotNull() Class<T> clazz)
Gets the request body and deserializes it into a list of the given type, using a MarshallingService. abstract <K, V> Map<K, V>
getRequestBodyAsMap(@NotNull() MarshallingService marshallingService, @NotNull() Class<K> keyClass, @NotNull() Class<V> valueClass)
Gets the request body and deserializes it into a map of the given value type, using a MarshallingService. -
-
Method Detail
-
getRequestBody
@NotNull() abstract String getRequestBody()
Gets the request body for the ClientStartableFlow.
-
getRequestBodyAs
@NotNull() abstract <T> T getRequestBodyAs(@NotNull() MarshallingService marshallingService, @NotNull() Class<T> clazz)
Gets the request body and deserializes it into the given type, using a MarshallingService.
The selected MarshallingService will determine what format data is returned.
- Parameters:
marshallingService
- The MarshallingService to use to deserialize this request body.clazz
- The class to deserialize the data into.
-
getRequestBodyAsList
@NotNull() abstract <T> List<T> getRequestBodyAsList(@NotNull() MarshallingService marshallingService, @NotNull() Class<T> clazz)
Gets the request body and deserializes it into a list of the given type, using a MarshallingService.
The selected MarshallingService will determine what format data is returned.
- Parameters:
marshallingService
- The MarshallingService to use to deserialize this request body.clazz
- The class to deserialize the data into.
-
getRequestBodyAsMap
@NotNull() abstract <K, V> Map<K, V> getRequestBodyAsMap(@NotNull() MarshallingService marshallingService, @NotNull() Class<K> keyClass, @NotNull() Class<V> valueClass)
Gets the request body and deserializes it into a map of the given value type, using a MarshallingService.
The selected MarshallingService will determine what format data is returned.
- Parameters:
marshallingService
- The MarshallingService to use to deserialize this request body.keyClass
- The class to deserialize the key data into.valueClass
- The class to deserialize the value data into.
-
-
-
-