public class SimpleBuilder extends Object implements org.apache.camel.Predicate, org.apache.camel.Expression, org.apache.camel.spi.ExpressionResultTypeAware
RouteBuilder
which means that using simple language for
Expression
s or Predicate
s is very easy with the help of this builder.Constructor and Description |
---|
SimpleBuilder(String text) |
Modifier and Type | Method and 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() |
public SimpleBuilder(String text)
public static SimpleBuilder simple(String text)
public static SimpleBuilder simple(String text, Class<?> resultType)
public static SimpleBuilder simpleF(String formatText, Object... values)
public static SimpleBuilder simpleF(String formatText, Class<?> resultType, Object... values)
public String getText()
public String getExpressionText()
getExpressionText
in interface org.apache.camel.spi.ExpressionResultTypeAware
public Class<?> getResultType()
getResultType
in interface org.apache.camel.spi.ExpressionResultTypeAware
public void setResultType(Class<?> resultType)
public SimpleBuilder resultType(Class<?> resultType)
public <T> T evaluate(org.apache.camel.Exchange exchange, Class<T> type)
evaluate
in interface org.apache.camel.Expression
public boolean matches(org.apache.camel.Exchange exchange)
matches
in interface org.apache.camel.Predicate
public void init(org.apache.camel.CamelContext context)
init
in interface org.apache.camel.Expression
init
in interface org.apache.camel.Predicate
Apache Camel