|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.camel.builder.BuilderSupport
public abstract class BuilderSupport
Base class for implementation inheritance for different clauses in the Java DSL
Constructor Summary | |
---|---|
protected |
BuilderSupport(BuilderSupport parent)
|
protected |
BuilderSupport(CamelContext context)
|
Method Summary | ||
---|---|---|
ValueBuilder |
body()
Returns a predicate and value builder for the inbound body on an exchange |
|
|
body(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 |
|
protected ErrorHandlerBuilder |
createErrorHandlerBuilder()
|
|
DeadLetterChannelBuilder |
deadLetterChannel()
|
|
DeadLetterChannelBuilder |
deadLetterChannel(Endpoint deadLetterEndpoint)
|
|
DeadLetterChannelBuilder |
deadLetterChannel(String deadLetterUri)
|
|
Endpoint |
endpoint(String uri)
Resolves the given URI to an endpoint |
|
|
endpoint(String uri,
Class<T> type)
Resolves the given URI to an endpoint of the specified type |
|
List<Endpoint> |
endpoints(Endpoint... endpoints)
Helper method to create a list of Endpoint instances |
|
List<Endpoint> |
endpoints(String... uris)
Resolves the list of URIs into a list of Endpoint instances |
|
ValueBuilder |
faultBody()
Returns a predicate and value builder for the fault body on an exchange |
|
|
faultBodyAs(Class<T> type)
Returns a predicate and value builder for the fault message body as a specific type |
|
CamelContext |
getContext()
|
|
ErrorHandlerBuilder |
getErrorHandlerBuilder()
|
|
ValueBuilder |
header(String name)
Returns a value builder for the given header |
|
boolean |
isInheritErrorHandler()
|
|
LoggingErrorHandlerBuilder |
loggingErrorHandler()
Creates an error handler which just logs errors |
|
LoggingErrorHandlerBuilder |
loggingErrorHandler(org.apache.commons.logging.Log log)
Creates an error handler which just logs errors |
|
LoggingErrorHandlerBuilder |
loggingErrorHandler(org.apache.commons.logging.Log log,
LoggingLevel level)
Creates an error handler which just logs errors |
|
LoggingErrorHandlerBuilder |
loggingErrorHandler(String log)
Creates an error handler which just logs errors |
|
NoErrorHandlerBuilder |
noErrorHandler()
Creates a disabled error handler for removing the default error handler |
|
ValueBuilder |
outBody()
Returns a predicate and value builder for the outbound body on an exchange |
|
|
outBody(Class<T> type)
Returns a predicate and value builder for the outbound message body as a specific type |
|
void |
setContext(CamelContext context)
|
|
void |
setErrorHandlerBuilder(ErrorHandlerBuilder errorHandlerBuilder)
Sets the error handler to use with processors created by this builder |
|
void |
setInheritErrorHandler(boolean inheritErrorHandler)
|
|
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 |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
protected BuilderSupport(CamelContext context)
protected BuilderSupport(BuilderSupport parent)
Method Detail |
---|
public ValueBuilder header(String name)
public ValueBuilder body()
public <T> ValueBuilder body(Class<T> type)
public ValueBuilder outBody()
public <T> ValueBuilder outBody(Class<T> type)
public ValueBuilder faultBody()
public <T> ValueBuilder faultBodyAs(Class<T> type)
public ValueBuilder systemProperty(String name)
public ValueBuilder systemProperty(String name, String defaultValue)
public ValueBuilder constant(Object value)
public Endpoint endpoint(String uri) throws NoSuchEndpointException
NoSuchEndpointException
- if the endpoint URI could not be resolvedpublic <T extends Endpoint> T endpoint(String uri, Class<T> type) throws NoSuchEndpointException
NoSuchEndpointException
- if the endpoint URI could not be resolvedpublic List<Endpoint> endpoints(String... uris) throws NoSuchEndpointException
Endpoint
instances
NoSuchEndpointException
- if an endpoint URI could not be resolvedpublic List<Endpoint> endpoints(Endpoint... endpoints)
Endpoint
instances
public NoErrorHandlerBuilder noErrorHandler()
public LoggingErrorHandlerBuilder loggingErrorHandler()
public LoggingErrorHandlerBuilder loggingErrorHandler(String log)
public LoggingErrorHandlerBuilder loggingErrorHandler(org.apache.commons.logging.Log log)
public LoggingErrorHandlerBuilder loggingErrorHandler(org.apache.commons.logging.Log log, LoggingLevel level)
public DeadLetterChannelBuilder deadLetterChannel()
public DeadLetterChannelBuilder deadLetterChannel(String deadLetterUri)
public DeadLetterChannelBuilder deadLetterChannel(Endpoint deadLetterEndpoint)
public CamelContext getContext()
public void setContext(CamelContext context)
public ErrorHandlerBuilder getErrorHandlerBuilder()
protected ErrorHandlerBuilder createErrorHandlerBuilder()
public void setErrorHandlerBuilder(ErrorHandlerBuilder errorHandlerBuilder)
public boolean isInheritErrorHandler()
public void setInheritErrorHandler(boolean inheritErrorHandler)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |