Package org.apache.camel.coap
Class CoAPHelper
java.lang.Object
org.apache.camel.coap.CoAPHelper
Various helper methods for CoAP
-
Method Summary
Modifier and TypeMethodDescriptionstatic voidconvertCoapResponseToMessage(org.eclipse.californium.core.CoapResponse coapResponse, org.apache.camel.Message message) static StringgetDefaultMethod(org.apache.camel.Exchange exchange, org.eclipse.californium.core.CoapClient client) Determines which CoAP request method to use based on the content of the target request URI, the message body or value from the CamelCoapMethod header.static StringgetDefaultMethodRestrict(String methodRestrict) Determines which method verbs the CoAP server should be restricted to handling.
-
Method Details
-
getDefaultMethod
public static String getDefaultMethod(org.apache.camel.Exchange exchange, org.eclipse.californium.core.CoapClient client) Determines which CoAP request method to use based on the content of the target request URI, the message body or value from the CamelCoapMethod header.- Parameters:
exchange- the exchangeclient- the CoAP client- Returns:
- the CoAP request method
-
getDefaultMethodRestrict
Determines which method verbs the CoAP server should be restricted to handling. -
getPathSegmentsFromPath
-
convertCoapResponseToMessage
public static void convertCoapResponseToMessage(org.eclipse.californium.core.CoapResponse coapResponse, org.apache.camel.Message message)
-