RPCRequestData

interface RPCRequestData

RPCRequestData wraps the requestData parameter of the HTTP call that triggered a RPCStartableFlow.

A RPCStartableFlow receives an instance of this interface, which can be used to retrieve the request body.

See also

Functions

Link copied to clipboard
abstract fun getRequestBody(): String

Gets the request body for the RPCStartableFlow.

Link copied to clipboard
abstract fun <T> getRequestBodyAs(marshallingService: MarshallingService, clazz: Class<T>): T

Gets the request body and deserializes it into the given type, using a MarshallingService.

Link copied to clipboard
abstract fun <T> getRequestBodyAsList(marshallingService: MarshallingService, clazz: Class<T>): List<T>

Gets the request body and deserializes it into a list of the given type, using a MarshallingService.

Extensions

Link copied to clipboard
inline fun <T> RPCRequestData.getRequestBodyAs(marshallingService: MarshallingService): T

Gets the request body and deserializes it into the given type, using a MarshallingService.

Link copied to clipboard
inline fun <T> RPCRequestData.getRequestBodyAsList(marshallingService: MarshallingService): List<T>

Gets the request body and deserializes it into a list of the given type, using a MarshallingService.