Payload

interface Payload

The Payload is used to store all the parameters and configurations that are used to send data via the GET/POST request.

Inheritors

Functions

Link copied to clipboard
abstract fun add(key: String, value: Any?)
abstract fun add(key: String, value: String?)

Add a basic parameter.

Link copied to clipboard
abstract fun addMap(map: Map<String, Any?>)

Add all the mappings from the specified map. The effect is the equivalent to that of calling add(String key, Object value) for each mapping for each key.

abstract fun addMap(map: Map<*, *>, base64_encoded: Boolean, type_encoded: String, type_no_encoded: String)

Add a map to the Payload with a key dependent on the base 64 encoding option you choose using the two keys provided.

Link copied to clipboard
abstract override fun toString(): String

Returns the Payload as a string. This is essentially the toString from the ObjectNode used to store the Payload.

Properties

Link copied to clipboard
abstract val byteSize: Long

Returns the byte size of a payload.

Link copied to clipboard
abstract val map: Map<String, Any>

Returns the Payload as a HashMap.