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

BaseOutgoingMessageBuilder

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

Base class for MessageBuilder providing common implementation

Constructors

<init>

BaseOutgoingMessageBuilder()

Base class for MessageBuilder providing common implementation

Functions

body

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

Body of the coap message

option

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

Add an option to coap message

progressObserver

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

Progress Observer of the coap message

Inherited Functions

build

abstract fun build(): T

Build Coap Message

Inheritors

OutgoingRequestBuilder

class OutgoingRequestBuilder : BaseOutgoingMessageBuilder<OutgoingRequest>

Concrete class of MessageBuilder for building OutgoingRequest

OutgoingResponseBuilder

class OutgoingResponseBuilder : BaseOutgoingMessageBuilder<OutgoingResponse>

Concrete class of MessageBuilder for building OutgoingResponse