public abstract class BuilderSupport extends Object implements org.apache.camel.CamelContextAware
Modifier | Constructor and Description |
---|---|
protected |
BuilderSupport() |
protected |
BuilderSupport(org.apache.camel.CamelContext context) |
Modifier and Type | Method and Description |
---|---|
ValueBuilder |
body()
Returns a predicate and value builder for the inbound body on an exchange
|
<T> ValueBuilder |
bodyAs(Class<T> type)
Returns a predicate and value builder for the inbound message body as a specific type
|
ValueBuilder |
constant(Object... value)
Returns a constant expression value builder
|
ValueBuilder |
constant(Object value)
Returns a constant expression value builder
|
ValueBuilder |
constant(Object value,
boolean trim)
Returns a constant expression value builder
|
protected ErrorHandlerBuilder |
createErrorHandlerBuilder() |
ValueBuilder |
csimple(String value)
Returns a compiled simple expression value builder
|
ValueBuilder |
csimple(String value,
Class<?> resultType)
Returns a compiled simple expression value builder
|
ValueBuilder |
datasonnet(String value)
Returns a datasonnet expression value builder
|
ValueBuilder |
datasonnet(String value,
Class<?> resultType)
Returns a datasonnet expression value builder
|
ValueBuilder |
datasonnet(String value,
Class<?> resultType,
String bodyMediaType,
String outputMediaType)
Returns a datasonnet expression value builder
|
DeadLetterChannelBuilder |
deadLetterChannel(org.apache.camel.Endpoint deadLetterEndpoint)
Dead Letter Channel EIP: is a error handler for
handling messages that could not be delivered to it's intended destination.
|
DeadLetterChannelBuilder |
deadLetterChannel(String deadLetterUri)
Dead Letter Channel EIP: is a error handler for
handling messages that could not be delivered to it's intended destination.
|
DefaultErrorHandlerBuilder |
defaultErrorHandler()
Creates a default error handler.
|
org.apache.camel.Endpoint |
endpoint(String uri)
Resolves the given URI to an endpoint
|
<T extends org.apache.camel.Endpoint> |
endpoint(String uri,
Class<T> type)
Resolves the given URI to an endpoint of the specified type
|
List<org.apache.camel.Endpoint> |
endpoints(org.apache.camel.Endpoint... endpoints)
Helper method to create a list of
Endpoint instances |
List<org.apache.camel.Endpoint> |
endpoints(String... uris)
Resolves the list of URIs into a list of
Endpoint instances |
ValueBuilder |
exceptionMessage()
Returns a exception expression value builder
|
ValueBuilder |
exchangeProperty(String name)
Returns a value builder for the given exchange property
|
org.apache.camel.CamelContext |
getCamelContext() |
org.apache.camel.CamelContext |
getContext()
Get the
CamelContext |
ErrorHandlerBuilder |
getErrorHandlerBuilder() |
boolean |
hasErrorHandlerBuilder() |
ValueBuilder |
header(String name)
Returns a value builder for the given header
|
ValueBuilder |
joor(String value)
Returns a JOOR expression value builder
|
ValueBuilder |
joor(String value,
Class<?> resultType)
Returns a JOOR expression value builder
|
ValueBuilder |
jsonpath(String value)
Returns a JSonPath expression value builder
|
ValueBuilder |
jsonpath(String value,
Class<?> resultType)
Returns a JSonPath expression value builder
|
ValueBuilder |
method(Class<?> beanType)
Returns a method call expression value builder
|
ValueBuilder |
method(Class<?> beanType,
String method)
Returns a method call expression value builder
|
ValueBuilder |
method(Object beanOrBeanRef)
Returns a method call expression value builder
This method accepts dual parameters.
|
ValueBuilder |
method(Object beanOrBeanRef,
String method)
Returns a method call expression value builder
This method accepts dual parameters.
|
NoErrorHandlerBuilder |
noErrorHandler()
Creates a disabled error handler for removing the
default error handler
|
ValueBuilder |
regexReplaceAll(org.apache.camel.Expression content,
String regex,
org.apache.camel.Expression replacement)
Returns an expression value builder that replaces all occurrences of the regular expression with the given
replacement
|
ValueBuilder |
regexReplaceAll(org.apache.camel.Expression content,
String regex,
String replacement)
Returns an expression value builder that replaces all occurrences of the regular expression with the given
replacement
|
void |
setCamelContext(org.apache.camel.CamelContext camelContext) |
void |
setContext(org.apache.camel.CamelContext context)
Deprecated.
|
void |
setErrorHandlerBuilder(ErrorHandlerBuilder errorHandlerBuilder)
Sets the error handler to use with processors created by this builder
|
ValueBuilder |
simple(String value)
Returns a simple expression value builder
|
ValueBuilder |
simple(String value,
Class<?> resultType)
Returns a simple expression value builder
|
ValueBuilder |
simpleF(String format,
Class<?> resultType,
Object... values)
Returns a simple expression value builder, using String.format style
|
ValueBuilder |
simpleF(String format,
Object... values)
Returns a simple expression value builder, using String.format style
|
ValueBuilder |
systemProperty(String name)
Returns a value builder for the given system property
|
ValueBuilder |
systemProperty(String name,
String defaultValue)
Returns a value builder for the given system property
|
ValueBuilder |
xpath(String value)
Returns a xpath expression value builder
|
ValueBuilder |
xpath(String value,
Class<?> resultType)
Returns a xpath expression value builder
|
ValueBuilder |
xpath(String value,
Class<?> resultType,
org.apache.camel.support.builder.Namespaces namespaces)
Returns a xpath expression value builder
|
ValueBuilder |
xpath(String value,
org.apache.camel.support.builder.Namespaces namespaces)
Returns a xpath expression value builder
|
protected BuilderSupport()
protected BuilderSupport(org.apache.camel.CamelContext context)
public ValueBuilder header(String name)
public ValueBuilder exchangeProperty(String name)
public ValueBuilder body()
public <T> ValueBuilder bodyAs(Class<T> type)
public ValueBuilder systemProperty(String name)
public ValueBuilder systemProperty(String name, String defaultValue)
public ValueBuilder constant(Object value)
public ValueBuilder constant(Object value, boolean trim)
public ValueBuilder constant(Object... value)
public ValueBuilder joor(String value)
public ValueBuilder joor(String value, Class<?> resultType)
public ValueBuilder jsonpath(String value)
public ValueBuilder jsonpath(String value, Class<?> resultType)
value
- The JSonPath expressionresultType
- The result type that the JSonPath expression will return.public ValueBuilder csimple(String value)
public ValueBuilder csimple(String value, Class<?> resultType)
public ValueBuilder datasonnet(String value)
public ValueBuilder datasonnet(String value, Class<?> resultType)
public ValueBuilder datasonnet(String value, Class<?> resultType, String bodyMediaType, String outputMediaType)
public ValueBuilder simple(String value)
public ValueBuilder simple(String value, Class<?> resultType)
public ValueBuilder simpleF(String format, Object... values)
public ValueBuilder simpleF(String format, Class<?> resultType, Object... values)
public ValueBuilder xpath(String value)
value
- the XPath expressionpublic ValueBuilder xpath(String value, Class<?> resultType)
value
- the XPath expressionresultType
- the result type that the XPath expression will return.public ValueBuilder xpath(String value, org.apache.camel.support.builder.Namespaces namespaces)
value
- the XPath expressionnamespaces
- namespace mappingspublic ValueBuilder xpath(String value, Class<?> resultType, org.apache.camel.support.builder.Namespaces namespaces)
value
- the XPath expressionresultType
- the result type that the XPath expression will return.namespaces
- namespace mappingspublic ValueBuilder method(Object beanOrBeanRef)
beanOrBeanRef
- either an instanceof a bean or a reference to bean to lookup in the Registrypublic ValueBuilder method(Object beanOrBeanRef, String method)
beanOrBeanRef
- either an instanceof a bean or a reference to bean to lookup in the Registrymethod
- name of method to invokepublic ValueBuilder method(Class<?> beanType)
beanType
- the Class of the bean which we want to invokepublic ValueBuilder method(Class<?> beanType, String method)
beanType
- the Class of the bean which we want to invokemethod
- name of method to invokepublic ValueBuilder regexReplaceAll(org.apache.camel.Expression content, String regex, String replacement)
public ValueBuilder regexReplaceAll(org.apache.camel.Expression content, String regex, org.apache.camel.Expression replacement)
public ValueBuilder exceptionMessage()
public org.apache.camel.Endpoint endpoint(String uri) throws org.apache.camel.NoSuchEndpointException
uri
- the uri to resolveorg.apache.camel.NoSuchEndpointException
- if the endpoint URI could not be resolvedpublic <T extends org.apache.camel.Endpoint> T endpoint(String uri, Class<T> type) throws org.apache.camel.NoSuchEndpointException
uri
- the uri to resolvetype
- the excepted type of the endpointorg.apache.camel.NoSuchEndpointException
- if the endpoint URI could not be resolvedpublic List<org.apache.camel.Endpoint> endpoints(String... uris) throws org.apache.camel.NoSuchEndpointException
Endpoint
instancesuris
- list of endpoints to resolveorg.apache.camel.NoSuchEndpointException
- if an endpoint URI could not be resolvedpublic List<org.apache.camel.Endpoint> endpoints(org.apache.camel.Endpoint... endpoints)
Endpoint
instancesendpoints
- endpointspublic DefaultErrorHandlerBuilder defaultErrorHandler()
public NoErrorHandlerBuilder noErrorHandler()
public DeadLetterChannelBuilder deadLetterChannel(String deadLetterUri)
deadLetterUri
- uri to the dead letter endpoint storing dead messagespublic DeadLetterChannelBuilder deadLetterChannel(org.apache.camel.Endpoint deadLetterEndpoint)
deadLetterEndpoint
- dead letter endpoint storing dead messagespublic org.apache.camel.CamelContext getCamelContext()
getCamelContext
in interface org.apache.camel.CamelContextAware
public void setCamelContext(org.apache.camel.CamelContext camelContext)
setCamelContext
in interface org.apache.camel.CamelContextAware
public org.apache.camel.CamelContext getContext()
CamelContext
@Deprecated public void setContext(org.apache.camel.CamelContext context)
setCamelContext(CamelContext)
public boolean hasErrorHandlerBuilder()
public ErrorHandlerBuilder getErrorHandlerBuilder()
protected ErrorHandlerBuilder createErrorHandlerBuilder()
public void setErrorHandlerBuilder(ErrorHandlerBuilder errorHandlerBuilder)
Apache Camel