Class DockerHelper

java.lang.Object
org.apache.camel.component.docker.DockerHelper

public final class DockerHelper extends Object
Utility methods for Docker Component
  • Method Details

    • transformFromHeaderName

      public static String transformFromHeaderName(String name)
      Transforms a Docker Component header value to its analogous URI parameter
      Parameters:
      name -
      Returns:
    • getProperty

      public static <T> T getProperty(String name, DockerConfiguration configuration, org.apache.camel.Message message, Class<T> clazz)
      Attempts to locate a given property name within a URI parameter or the message header. A found value in a message header takes precedence over a URI parameter.
      Parameters:
      name -
      configuration -
      message -
      clazz -
      Returns:
    • getProperty

      public static <T> T getProperty(String name, DockerConfiguration configuration, org.apache.camel.Message message, Class<T> clazz, T defaultValue)
      Attempts to locate a given property name within a URI parameter or the message header. A found value in a message header takes precedence over a URI parameter. Returns a default value if given
      Parameters:
      name -
      configuration -
      message -
      clazz -
      defaultValue -
      Returns:
    • getArrayProperty

      public static <T> T[] getArrayProperty(String name, org.apache.camel.Message message, Class<T> clazz)
      Attempts to locate a given property which is an array by name within a URI parameter or the message header. A found value in a message header takes precedence over a URI parameter.
      Parameters:
      name -
      message -
      clazz -
      Returns:
    • parseDelimitedStringHeader

      public static String[] parseDelimitedStringHeader(String headerName, org.apache.camel.Message message)
      Parameters:
      headerName - name of the header
      message - the Camel message
      Returns: