GoldenGateBindings / com.fitbit.goldengate.bindings.coap.handler / EchoResourceHandler

EchoResourceHandler

class EchoResourceHandler : BaseResourceHandler

Resource handler to echo back any PUT and POST request

Constructors

<init>

EchoResourceHandler()

Resource handler to echo back any PUT and POST request

Functions

onPost

fun onPost(request: IncomingRequest, responseBuilder: OutgoingResponseBuilder): Single<OutgoingResponse>

Handler for request of POST

onPut

fun onPut(request: IncomingRequest, responseBuilder: OutgoingResponseBuilder): Single<OutgoingResponse>

Handler for request of PUT

Inherited Functions

onDelete

open fun onDelete(request: IncomingRequest, responseBuilder: OutgoingResponseBuilder): Single<OutgoingResponse>

Handler for request of DELETE

onGet

open fun onGet(request: IncomingRequest, responseBuilder: OutgoingResponseBuilder): Single<OutgoingResponse>

Handler for request of GET