public class ClientOperations extends Object
| Constructor and Description |
|---|
ClientOperations() |
| Modifier and Type | Method and Description |
|---|---|
Set<DiscoveredResource> |
discover(Client client,
DiscoverParams discoverParams)
The Discover processor retrieves information about CoAP resources of a
server.
|
void |
observerAdd(Client client,
ResponseHandlerParams responseHandlerParams,
ObserverAddParams observerAddParams)
The ObserverAdd processor creates an observer.
|
boolean |
observerExists(Client client,
ObserverExistsParams observerExistsParams)
Establish whether an observer with given parameters exists.
|
Set<String> |
observerList(Client client)
This processor returns a list of observers.
|
void |
observerRemove(Client client,
ObserverRemoveParams observerRemoveParams)
The ObserverRemove processor removes an observer.
|
boolean |
ping(Client client,
PingParams pingParams)
The Ping processor checks whether a CoAP server is reachable.
|
org.mule.runtime.extension.api.runtime.operation.Result<InputStream,CoapResponseAttributes> |
request(Client client,
RequestParams requestParams,
RequestOptionsParams requestOptions)
The Request Processor issues a request on a CoAP server.
|
void |
requestAsync(Client client,
ResponseHandlerParams responseHandlerParams,
RequestParams requestParams,
RequestOptionsParams requestOptions)
The RequestAsync Processor issues a request on a CoAP server asynchronously.
|
@MediaType(value="*/*",
strict=false)
@Throws(value=RequestErrorProvider.class)
public org.mule.runtime.extension.api.runtime.operation.Result<InputStream,CoapResponseAttributes> request(@Config
Client client,
@ParameterGroup(name="Request")
RequestParams requestParams,
@ParameterGroup(name="Request options") @Summary(value="The CoAP options to send with the request.") @Placement(tab="Options",order=1)
RequestOptionsParams requestOptions)
client - The client used for issuing the request.requestParams - Builder that delivers the request parameters.requestOptions - The CoAP options to send with the request.@Throws(value=RequestAsyncErrorProvider.class) public void requestAsync(@Config Client client, @ParameterGroup(name="Response handling") ResponseHandlerParams responseHandlerParams, @ParameterGroup(name="Request") RequestParams requestParams, @ParameterGroup(name="Request options") @Summary(value="The CoAP options to send with the request.") @Placement(tab="Options",order=1) RequestOptionsParams requestOptions)
client - The client used for issuing the request.responseHandlerParams - Builder that delivers the response handler parameters.requestParams - Builder that delivers the request parameters.requestOptions - The CoAP options to send with the request.@Throws(value=PingErrorProvider.class) public boolean ping(@Config Client client, @ParameterGroup(name="Ping address") PingParams pingParams)
client - The client to use to issue the request.pingParams - The request attributes to use.True when the server has responded, False otherwise.@Throws(value=DiscoverErrorProvider.class) public Set<DiscoveredResource> discover(@Config Client client, @ParameterGroup(name="Discover address") DiscoverParams discoverParams)
client - The client to use to issue the request.discoverParams - The attributes of the discover request@Throws(value=ObserverAddErrorProvider.class) public void observerAdd(@Config Client client, @ParameterGroup(name="Notification handling") ResponseHandlerParams responseHandlerParams, @ParameterGroup(name="Observe request") ObserverAddParams observerAddParams)
client - The client instance that the observer belongs to.responseHandlerParams - Name of the response handler that will process the
notification received from server.observerAddParams - Parameters of the observe request. These will override client defaults.@Throws(value=ObserverRemoveErrorProvider.class) public void observerRemove(@Config Client client, @ParameterGroup(name="Observe request") ObserverRemoveParams observerRemoveParams)
client - The client instance that the observer belongs to.observerRemoveParams - Parameters of the observe request. These will override client defaults.@Throws(value=ObserverExistsErrorProvider.class) public boolean observerExists(@Config Client client, @ParameterGroup(name="Observer uri") ObserverExistsParams observerExistsParams)
client - The client instance of which the observers are searched.observerExistsParams - The the list of observer uri parameters.Copyright © 2019–2024 Teslanet.nl. All rights reserved.