Class DockerHelper
java.lang.Object
org.apache.camel.component.docker.DockerHelper
Utility methods for Docker Component
-
Method Summary
Modifier and TypeMethodDescriptionstatic <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.static <T> TgetProperty(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.static <T> TgetProperty(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.static String[]parseDelimitedStringHeader(String headerName, org.apache.camel.Message message) static StringTransforms a Docker Component header value to its analogous URI parameter
-
Method Details
-
transformFromHeaderName
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 headermessage- the Camel message- Returns:
-