public interface CoapRequestBuilder
| Modifier and Type | Method and Description |
|---|---|
org.eclipse.californium.core.coap.Request |
build()
Build the CoAP request based on given parameters.
|
org.eclipse.californium.core.coap.Request |
buildEmpty()
Build an empty CoAP request based on given parameters.
|
URI |
buildEndpointUri()
Build the URI of the endpoint to address the request.
|
CoapMessageType |
buildMessageType()
Build the message type of the request.
|
org.eclipse.californium.core.coap.OptionSet |
buildOptionSet()
Build the options of the request.
|
CoapRequestCode |
buildRequestCode()
Build the code of the request.
|
URI |
buildResourceUri()
Build the URI of the resource to request.
|
URI buildResourceUri() throws InternalUriException
InternalUriException - When URI components cannot be assembled to a valid URI.URI buildEndpointUri() throws InternalUriException
InternalUriException - When URI components cannot be assembled to a valid URI.org.eclipse.californium.core.coap.Request build()
throws InternalInvalidRequestCodeException,
InternalUriException,
InternalRequestException,
InternalInvalidOptionValueException,
InternalUnkownOptionException
InternalInvalidRequestCodeException - When given requestCode is invalid.InternalUriException - When parameters do not assemble to valid URI.InternalRequestException - When given payload could not be added the request.InternalUnkownOptionException - When an unknown other option alias is given.InternalInvalidOptionValueException - When an invalid option value is given.org.eclipse.californium.core.coap.Request buildEmpty()
throws InternalUriException
InternalUriException - When parameters do not assemble to valid URI.CoapMessageType buildMessageType()
CoapRequestCode buildRequestCode()
org.eclipse.californium.core.coap.OptionSet buildOptionSet()
Copyright © 2019–2025 Teslanet.nl. All rights reserved.