Class CoAPHelper

java.lang.Object
org.apache.camel.coap.CoAPHelper

public final class CoAPHelper extends Object
Various helper methods for CoAP
  • 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 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.
    • getPathSegmentsFromPath

      public static List<String> getPathSegmentsFromPath(String path)
    • convertCoapResponseToMessage

      public static void convertCoapResponseToMessage(org.eclipse.californium.core.CoapResponse coapResponse, org.apache.camel.Message message)