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.

See also

Functions

Link copied to clipboard
@NotNull
abstract fun getRequestBody(): String
Gets the request body for the ClientStartableFlow.
Link copied to clipboard
@NotNull
abstract fun <T> getRequestBodyAs(@NotNull marshallingService: MarshallingService, @NotNull clazz: Class<T>): T
Gets the request body and deserializes it into the given type, using a MarshallingService.
Link copied to clipboard
@NotNull
abstract fun <T> getRequestBodyAsList(@NotNull marshallingService: MarshallingService, @NotNull clazz: Class<T>): List<T>
Gets the request body and deserializes it into a list of the given type, using a MarshallingService.
Link copied to clipboard
@NotNull
abstract fun <K, V> getRequestBodyAsMap(@NotNull marshallingService: MarshallingService, @NotNull keyClass: Class<K>, @NotNull valueClass: Class<V>): Map<K, V>
Gets the request body and deserializes it into a map of the given value type, using a MarshallingService.