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

OutgoingResponseBuilder

class OutgoingResponseBuilder : BaseOutgoingMessageBuilder<OutgoingResponse>

Concrete class of MessageBuilder for building OutgoingResponse

Constructors

<init>

OutgoingResponseBuilder()

Concrete class of MessageBuilder for building OutgoingResponse

Functions

build

fun build(): OutgoingResponse

Build Coap Message

responseCode

fun responseCode(code: ResponseCode): OutgoingResponseBuilder

Set the ResponseCode to build a response with (e.g. 2.01, 4.04)

Inherited 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