RPCRequest Data
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
Gets the request body for the RPCStartableFlow.
Link copied to clipboard
abstract fun <T> getRequestBodyAs(marshallingService: MarshallingService, clazz: Class<T>): T
Content copied to clipboard
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>
Content copied to clipboard
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
Content copied to clipboard
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>
Content copied to clipboard
Gets the request body and deserializes it into a list of the given type, using a MarshallingService.