CoapClientFactory class final

A ProtocolClientFactory that produces CoAP clients.

Implemented types

Constructors

CoapClientFactory({CoapConfig? coapConfig, ClientPskCallback? pskCredentialsCallback, AceSecurityCallback? aceSecurityCallback})
Creates a new CoapClientFactory based on an optional CoapConfig.

Properties

coapConfig CoapConfig?
The CoapConfig used to configure new clients.
final
hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
schemes Set<String>
The protocol schemes support of the clients this factory produces.
no setteroverride

Methods

createClient() ProtocolClient
Creates a new ProtocolClient with that supports one or more of the given schemes.
override
destroy() bool
Destroys this ProtocolClientFactory.
override
init() bool
Initializes this ProtocolClientFactory.
override
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
supportsOperation(OperationType operationType, String? subprotocol) bool
Indicates whether this ProtocolClientFactory supports a given operationType and subprotocol.
override
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited