language endpoint

language endpoint

Language endpoint. @version

Name Type Description
binary boolean Whether the script is binary content or text content.

By default the script is read as text content (eg java.lang.String) @param binary true to read the script as binary, instead of text based.

cacheScript boolean Whether to cache the compiled script and reuse

Notice reusing the script can cause side effects from processing one Camel {@link org.apache.camel.Exchange} to the next {@link org.apache.camel.Exchange}.

contentCache boolean Sets whether to use resource content cache or not - default is false. @see #getResourceAsInputStream()
contentResolvedFromResource boolean
languageName java.lang.String Sets the name of the language to use @param languageName the name of the language
resourceUri java.lang.String
script java.lang.String Sets the script to execute @param script the script
transform boolean Whether or not the result of the script should be used as message body.

This options is default true. @param transform true to use result as new message body, false to keep the existing message body