GoldenGateBindings / com.fitbit.goldengate.bindings.coap.data / OutgoingMessageBuilder

OutgoingMessageBuilder

interface OutgoingMessageBuilder<T : Message>

A MessageBuilder is used for constructing Message objects. This interface contains the shared components of OutgoingRequestBuilder and OutgoingResponseBuilder

Functions

body

abstract fun body(data: Data): OutgoingMessageBuilder<T>
abstract fun body(stream: InputStream): OutgoingMessageBuilder<T>

Body of the coap message

build

abstract fun build(): T

Build Coap Message

option

abstract fun option(option: Option): OutgoingMessageBuilder<T>

Add an option to coap message

progressObserver

abstract fun progressObserver(progressObserver: Observer<Int>): OutgoingMessageBuilder<T>

Progress Observer of the coap message

Inheritors

BaseOutgoingMessageBuilder

abstract class BaseOutgoingMessageBuilder<T : Message> : OutgoingMessageBuilder<T>

Base class for MessageBuilder providing common implementation