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 ValueBuilderbody()Returns a predicate and value builder for the inbound body on an exchangestatic <T> ValueBuilderReturns a predicate and value builder for the inbound message body as a specific typestatic ValueBuilderReturns a constant expressionstatic ValueBuilderReturns a constant expressionstatic ValueBuilderReturns a constant expressionstatic ValueBuilderReturns a csimple expressionstatic ValueBuilderReturns a csimple expressionstatic ValueBuilderReturns a predicate and value builder for the exception message on an exchangestatic ValueBuilderReturns a predicate and value builder for the exception stacktrace on an exchangestatic ValueBuilderexchangeProperty(String name) Returns a predicate and value builder for properties on an exchangestatic ValueBuilderReturns a predicate and value builder for headers on an exchangestatic ValueBuilderReturns a JOOR expression value builderstatic ValueBuilderReturns a JOOR expression value builderstatic ValueBuilderReturns a JQ expression value builderstatic ValueBuilderReturns a JQ expression value builderstatic ValueBuilderReturns a JSonPath expression value builderstatic ValueBuilderReturns a JSonPath expression value builderstatic ValueBuilderReturns a constant expressionstatic ValueBuilderReturns a method call expression value builderstatic ValueBuilderReturns a method call expression value builder.static ValueBuilderReturns a method call expression value builder.static ValueBuilderregexReplaceAll(org.apache.camel.Expression content, String regex, String replacement) Returns an expression that replaces all occurrences of the regular expression with the given replacementstatic ValueBuilderregexReplaceAll(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 ValueBuilderReturns a simple expressionstatic ValueBuilderReturns a simple expressionstatic ValueBuildersystemProperty(String name) Returns an expression for the given system propertystatic ValueBuildersystemProperty(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
-