interface OutgoingMessageBuilder<T : Message>
A MessageBuilder is used for constructing Message objects. This interface contains the shared components of OutgoingRequestBuilder and OutgoingResponseBuilder
abstract fun body(data: Data): OutgoingMessageBuilder<T> abstract fun body(stream: InputStream): OutgoingMessageBuilder<T>
Body of the coap message |
|
abstract fun build(): T
Build Coap Message |
|
abstract fun option(option: Option): OutgoingMessageBuilder<T>
Add an option to coap message |
|
abstract fun progressObserver(progressObserver: Observer<Int>): OutgoingMessageBuilder<T>
Progress Observer of the coap message |
abstract class BaseOutgoingMessageBuilder<T : Message> : OutgoingMessageBuilder<T>
Base class for MessageBuilder providing common implementation |