Class CoAPHelper


  • public final class CoAPHelper
    extends Object
    Various helper methods for CoAP
    • 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 exchange
        client - the CoAP client
        Returns:
        the CoAP request method
      • getDefaultMethodRestrict

        public static String getDefaultMethodRestrict​(String methodRestrict)
        Determines which method verbs the CoAP server should be restricted to handling.