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

BaseResourceHandler

open class BaseResourceHandler : ResourceHandler

Base Implementation for ResourceHandler providing request not supported implementation for all resource handler.

Constructors

<init>

BaseResourceHandler()

Base Implementation for ResourceHandler providing request not supported implementation for all resource handler.

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

onPost

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

Handler for request of POST

onPut

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

Handler for request of PUT

Inheritors

BaseRxResourceHandler

abstract class BaseRxResourceHandler : BaseResourceHandler

Abstract class extended from BaseResourceHandler with extra functionality to receive data from a request and forward it to subscribed Observers

EchoResourceHandler

class EchoResourceHandler : BaseResourceHandler

Resource handler to echo back any PUT and POST request