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
public class SimpleBuilder extends Object implements org.apache.camel.Predicate, org.apache.camel.Expression, org.apache.camel.spi.ExpressionResultTypeAware
Creates an Simple language builder. This builder is available in the Java DSL from theRouteBuilder
which means that using simple language forExpression
s orPredicate
s 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 <T> T
evaluate(org.apache.camel.Exchange exchange, Class<T> type)
String
getExpressionText()
Class<?>
getResultType()
String
getText()
void
init(org.apache.camel.CamelContext context)
boolean
matches(org.apache.camel.Exchange exchange)
SimpleBuilder
resultType(Class<?> resultType)
void
setResultType(Class<?> resultType)
static SimpleBuilder
simple(String text)
static SimpleBuilder
simple(String text, Class<?> resultType)
static SimpleBuilder
simpleF(String formatText, Class<?> resultType, Object... values)
static SimpleBuilder
simpleF(String formatText, Object... values)
String
toString()
-
-
-
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)
-
getText
public String getText()
-
getExpressionText
public String getExpressionText()
- Specified by:
getExpressionText
in interfaceorg.apache.camel.spi.ExpressionResultTypeAware
-
getResultType
public Class<?> getResultType()
- Specified by:
getResultType
in interfaceorg.apache.camel.spi.ExpressionResultTypeAware
-
setResultType
public void setResultType(Class<?> resultType)
-
resultType
public SimpleBuilder resultType(Class<?> resultType)
-
evaluate
public <T> T evaluate(org.apache.camel.Exchange exchange, Class<T> type)
- Specified by:
evaluate
in interfaceorg.apache.camel.Expression
-
matches
public boolean matches(org.apache.camel.Exchange exchange)
- Specified by:
matches
in interfaceorg.apache.camel.Predicate
-
init
public void init(org.apache.camel.CamelContext context)
- Specified by:
init
in interfaceorg.apache.camel.Expression
- Specified by:
init
in interfaceorg.apache.camel.Predicate
-
-