Package org.apache.camel.coap
Class CoAPHelper
- java.lang.Object
-
- org.apache.camel.coap.CoAPHelper
-
public final class CoAPHelper extends Object
Various helper methods for CoAP
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description 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 Detail
-
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
-
-