Package org.apache.camel.builder
Class SimpleBuilder
- java.lang.Object
-
- org.apache.camel.builder.SimpleBuilder
-
- All Implemented Interfaces:
org.apache.camel.Expression,org.apache.camel.Predicate,org.apache.camel.spi.ExpressionResultTypeAware,org.apache.camel.spi.PropertyConfigurer
public class SimpleBuilder extends Object implements org.apache.camel.Predicate, org.apache.camel.Expression, org.apache.camel.spi.ExpressionResultTypeAware, org.apache.camel.spi.PropertyConfigurer
Creates anorg.apache.camel.language.simple.Simplelanguage builder. This builder is available in the Java DSL from theRouteBuilderwhich means that using simple language forExpressions orPredicates is very easy with the help of this builder.
-
-
Constructor Summary
Constructors Constructor Description SimpleBuilder(String text)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanconfigure(org.apache.camel.CamelContext camelContext, Object target, String name, Object value, boolean ignoreCase)org.apache.camel.ExpressioncreateExpression(org.apache.camel.CamelContext context)org.apache.camel.PredicatecreatePredicate(org.apache.camel.CamelContext context)<T> Tevaluate(org.apache.camel.Exchange exchange, Class<T> type)StringgetExpressionText()Class<?>getResultType()StringgetText()voidinit(org.apache.camel.CamelContext context)booleanmatches(org.apache.camel.Exchange exchange)SimpleBuilderresultType(Class<?> resultType)voidsetResultType(Class<?> resultType)static SimpleBuildersimple(String text)static SimpleBuildersimple(String text, Class<?> resultType)static SimpleBuildersimpleF(String formatText, Class<?> resultType, Object... values)static SimpleBuildersimpleF(String formatText, Object... values)StringtoString()
-
-
-
Constructor Detail
-
SimpleBuilder
public SimpleBuilder(String text)
-
-
Method Detail
-
simple
public static SimpleBuilder simple(String text)
-
simple
public static SimpleBuilder simple(String text, Class<?> resultType)
-
simpleF
public static SimpleBuilder simpleF(String formatText, Object... values)
-
simpleF
public static SimpleBuilder simpleF(String formatText, Class<?> resultType, Object... values)
-
configure
public boolean configure(org.apache.camel.CamelContext camelContext, Object target, String name, Object value, boolean ignoreCase)
- Specified by:
configurein interfaceorg.apache.camel.spi.PropertyConfigurer
-
getExpressionText
public String getExpressionText()
- Specified by:
getExpressionTextin interfaceorg.apache.camel.spi.ExpressionResultTypeAware
-
getResultType
public Class<?> getResultType()
- Specified by:
getResultTypein interfaceorg.apache.camel.spi.ExpressionResultTypeAware
-
setResultType
public void setResultType(Class<?> resultType)
-
resultType
public SimpleBuilder resultType(Class<?> resultType)
-
init
public void init(org.apache.camel.CamelContext context)
- Specified by:
initin interfaceorg.apache.camel.Expression- Specified by:
initin interfaceorg.apache.camel.Predicate
-
matches
public boolean matches(org.apache.camel.Exchange exchange)
- Specified by:
matchesin interfaceorg.apache.camel.Predicate
-
evaluate
public <T> T evaluate(org.apache.camel.Exchange exchange, Class<T> type)
- Specified by:
evaluatein interfaceorg.apache.camel.Expression
-
createPredicate
public org.apache.camel.Predicate createPredicate(org.apache.camel.CamelContext context)
-
createExpression
public org.apache.camel.Expression createExpression(org.apache.camel.CamelContext context)
-
-