Package org.apache.camel.builder
Class Builder
java.lang.Object
org.apache.camel.builder.Builder
A helper class for including portions of the expression and
predicate Java
DSL
Implementation of this builder should favor build expressions using the definition classes from the
org.apache.camel.model.language package, to build the routes using the same types as it would happen when
using XML DSL.
-
Method Summary
Modifier and TypeMethodDescriptionstatic ValueBuilder
body()
Returns a predicate and value builder for the inbound body on an exchangestatic <T> ValueBuilder
Returns a predicate and value builder for the inbound message body as a specific typestatic ValueBuilder
Returns a constant expressionstatic ValueBuilder
Returns a constant expressionstatic ValueBuilder
Returns a constant expressionstatic ValueBuilder
Returns a csimple expressionstatic ValueBuilder
Returns a csimple expressionstatic ValueBuilder
Returns a predicate and value builder for the exception message on an exchangestatic ValueBuilder
Returns a predicate and value builder for the exception stacktrace on an exchangestatic ValueBuilder
exchangeProperty
(String name) Returns a predicate and value builder for properties on an exchangestatic ValueBuilder
Returns a predicate and value builder for headers on an exchangestatic ValueBuilder
Returns a JOOR expression value builderstatic ValueBuilder
Returns a JOOR expression value builderstatic ValueBuilder
Returns a JQ expression value builderstatic ValueBuilder
Returns a JQ expression value builderstatic ValueBuilder
Returns a JSonPath expression value builderstatic ValueBuilder
Returns a JSonPath expression value builderstatic ValueBuilder
Returns a constant expressionstatic ValueBuilder
Returns a method call expression value builderstatic ValueBuilder
Returns a method call expression value builder.static ValueBuilder
Returns a method call expression value builder.static ValueBuilder
regexReplaceAll
(org.apache.camel.Expression content, String regex, String replacement) Returns an expression that replaces all occurrences of the regular expression with the given replacementstatic ValueBuilder
regexReplaceAll
(org.apache.camel.Expression content, String regex, org.apache.camel.Expression replacement) Returns an expression that replaces all occurrences of the regular expression with the given replacementstatic ValueBuilder
Returns a simple expressionstatic ValueBuilder
Returns a simple expressionstatic ValueBuilder
systemProperty
(String name) Returns an expression for the given system propertystatic ValueBuilder
systemProperty
(String name, String defaultValue) Returns an expression for the given system property
-
Method Details
-
method
Returns a method call expression value builder. This method accepts dual parameters. Either an bean instance or a reference to a bean (String).- Parameters:
beanOrBeanRef
- either an instanceof a bean or a reference to bean to lookup in the Registry- Returns:
- the builder
-
method
Returns a method call expression value builder. This method accepts dual parameters. Either an bean instance or a reference to a bean (String).- Parameters:
beanOrBeanRef
- either an instanceof a bean or a reference to bean to lookup in the Registrymethod
- the method name- Returns:
- the builder
-
method
Returns a method call expression value builder- Parameters:
beanType
- the bean class which will be invokedmethod
- name of method to invoke- Returns:
- the builder
-
constant
Returns a constant expression -
constant
Returns a constant expression -
constant
Returns a constant expression -
language
Returns a constant expression -
csimple
Returns a csimple expression -
csimple
Returns a csimple expression -
simple
Returns a simple expression -
simple
Returns a simple expression -
joor
Returns a JOOR expression value builder -
joor
Returns a JOOR expression value builder -
jq
Returns a JQ expression value builder -
jq
Returns a JQ expression value builder -
jsonpath
Returns a JSonPath expression value builder -
jsonpath
Returns a JSonPath expression value builder- Parameters:
value
- The JSonPath expressionresultType
- The result type that the JSonPath expression will return.
-
header
Returns a predicate and value builder for headers on an exchange -
exchangeProperty
Returns a predicate and value builder for properties on an exchange -
body
Returns a predicate and value builder for the inbound body on an exchange -
bodyAs
Returns a predicate and value builder for the inbound message body as a specific type -
systemProperty
Returns an expression for the given system property -
systemProperty
Returns an expression for the given system property -
exceptionMessage
Returns a predicate and value builder for the exception message on an exchange -
exceptionStackTrace
Returns a predicate and value builder for the exception stacktrace on an exchange -
regexReplaceAll
public static ValueBuilder regexReplaceAll(org.apache.camel.Expression content, String regex, String replacement) Returns an expression that replaces all occurrences of the regular expression with the given replacement -
regexReplaceAll
public static ValueBuilder regexReplaceAll(org.apache.camel.Expression content, String regex, org.apache.camel.Expression replacement) Returns an expression that replaces all occurrences of the regular expression with the given replacement
-