data class AcceptOption : Option
Can be used to indicate which Content-Format is acceptable to the client. |
|
abstract class BaseOutgoingMessageBuilder<T : Message> : OutgoingMessageBuilder<T>
Base class for MessageBuilder providing common implementation |
|
interface BaseRequest
Holds common data for IncomingRequest and OutgoingRequest |
|
interface BaseResponse
Holds common data for IncomingResponse and OutgoingResponse |
|
class BytesArrayOutgoingBody : OutgoingBody
OutgoingBody with body source from a ByteArray |
|
data class ContentFormatOption : Option
The Content-Format Option indicates the representation format of the message payload. |
|
class EmptyOptionValue : OptionValue
For option that does not have a value, like OptionNumber.IF_NONE_MATCH |
|
class EmptyOutgoingBody : OutgoingBody
Empty OutgoingBody |
|
data class EtagOption : Option
The request MAY include one or more ETag Options, identifying responses that the client has stored. |
|
data class ExtendedError |
|
enum class FormatOptionValue
The Content-Format Option indicates the representation format of the message payload. These are the supported value for ContentFormatOption and AcceptOption coap options |
|
data class IfMatchOption : Option
The If-Match Option MAY be used to make a request conditional on the current existence or value of an ETag for one or more representations of the target resource. |
|
object IfNoneMatchOption : Option
The If-None-Match Option MAY be used to make a request conditional on the nonexistence of the target resource. |
|
interface IncomingBody
Represents the body of a incoming coap message. |
|
interface IncomingMessage : Message
This interface represents incoming CoAP Message objects. |
|
interface IncomingRequest : IncomingMessage, BaseRequest
Incoming coap request message. |
|
interface IncomingResponse : IncomingMessage, BaseResponse
Incoming coap response message. |
|
class InputStreamOutgoingBody : OutgoingBody
OutgoingBody with body source from a InputStream |
|
data class IntOptionValue : OptionValue
Option value with Int type |
|
data class LocationPathOption : Option
The values of these options specify the location at which the resource was created. Otherwise, the resource was created at the request URI. |
|
data class LocationQueryOption : Option
The values of these options specify the location at which the resource was created. Otherwise, the resource was created at the request URI. |
|
data class MaxAgeOption : Option
Caches can use the Max-Age Option to determine freshness and (if present) the ETAG Option for validation |
|
interface Message
This interface represents CoAP message objects. |
|
enum class Method
Supported Coap methods. These are analogous to HTTP methods of the same names. |
|
class OpaqueOptionValue : OptionValue
Option value with Opaque type |
|
sealed class Option
Individual Coap option |
|
enum class OptionNumber
Supported options that can be added to a coap message options |
|
sealed class OptionValue
Supported value types for a coap option |
|
sealed class OutgoingBody
Represents body of outgoing coap message. |
|
interface OutgoingMessage : Message
This interface represents outgoing CoAP Message objects. |
|
interface OutgoingMessageBuilder<T : Message>
A MessageBuilder is used for constructing Message objects. This interface contains the shared components of OutgoingRequestBuilder and OutgoingResponseBuilder |
|
interface OutgoingRequest : OutgoingMessage, BaseRequest
Represents outgoing request for a request in coap client mode. |
|
class OutgoingRequestBuilder : BaseOutgoingMessageBuilder<OutgoingRequest>
Concrete class of MessageBuilder for building OutgoingRequest |
|
interface OutgoingResponse : OutgoingMessage, BaseResponse
Implementations of this interface will be sent back to the CoAP Client in response to requests coming in to a CoAP Server |
|
class OutgoingResponseBuilder : BaseOutgoingMessageBuilder<OutgoingResponse>
Concrete class of MessageBuilder for building OutgoingResponse |
|
data class ResponseCode
This represents a CoAP response code (analogous to an HTTP response code (e.g. 201, 404, 500) |
|
data class StartOffset : Option
Vendor(Fitbit) option for start offset in a file |
|
data class StringOptionValue : OptionValue
Option value with String type |
|
data class UriQueryOption : Option
Specifies one argument parameterizing the resource. |
typealias Data = ByteArray |
|
typealias Opaque = ByteArray |
|
typealias Options = LinkedList<Option> |
fun ResponseCode.clientError(): Boolean
Extension function that return true if response is client error, false otherwise |
|
fun ResponseCode.error(): Boolean
Extension function that return true if response is client or server error, false otherwise |
|
fun ResponseCode.ok(): Boolean
Extension function that return true if response is ok, false otherwise |
|
fun ResponseCode.serverError(): Boolean
Extension function that return true if response is server error, false otherwise |