public class BeanRouter extends Object implements org.smooks.api.resource.visitor.sax.ng.AfterVisitor, org.smooks.api.delivery.ordering.Consumer, org.smooks.api.lifecycle.ExecutionLifecycleInitializable, org.smooks.api.lifecycle.ExecutionLifecycleCleanable
| Constructor and Description |
|---|
BeanRouter() |
BeanRouter(org.apache.camel.CamelContext camelContext) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
consumes(Object object) |
void |
executeExecutionLifecycleCleanup(org.smooks.api.ExecutionContext executionContext) |
void |
executeExecutionLifecycleInitialize(org.smooks.api.ExecutionContext executionContext) |
void |
postConstruct() |
void |
preDestroy() |
protected void |
sendBean(Object bean,
org.smooks.api.ExecutionContext execContext)
Send the bean to the target endpoint.
|
BeanRouter |
setBeanId(String beanId)
Set the beanId of the bean to be routed.
|
BeanRouter |
setCorrelationIdName(String correlationIdName)
Set the correlationId header name.
|
BeanRouter |
setCorrelationIdPattern(String correlationIdPattern)
Set the correlationId pattern used to generate correlationIds.
|
BeanRouter |
setToEndpoint(String toEndpoint)
Set the Camel endpoint to which the bean is to be routed.
|
void |
visitAfter(Element element,
org.smooks.api.ExecutionContext executionContext) |
public BeanRouter()
public BeanRouter(org.apache.camel.CamelContext camelContext)
@PostConstruct public void postConstruct()
public BeanRouter setBeanId(String beanId)
beanId - the beanId to setpublic BeanRouter setToEndpoint(String toEndpoint)
toEndpoint - the toEndpoint to setpublic BeanRouter setCorrelationIdName(String correlationIdName)
public BeanRouter setCorrelationIdPattern(String correlationIdPattern)
correlationIdPattern - The pattern generator template.public void visitAfter(Element element, org.smooks.api.ExecutionContext executionContext) throws org.smooks.api.SmooksException
visitAfter in interface org.smooks.api.resource.visitor.sax.ng.AfterVisitororg.smooks.api.SmooksExceptionprotected void sendBean(Object bean, org.smooks.api.ExecutionContext execContext)
bean - The bean to be sent.execContext - The execution context.@PreDestroy public void preDestroy()
public boolean consumes(Object object)
consumes in interface org.smooks.api.delivery.ordering.Consumerpublic void executeExecutionLifecycleInitialize(org.smooks.api.ExecutionContext executionContext)
executeExecutionLifecycleInitialize in interface org.smooks.api.lifecycle.ExecutionLifecycleInitializablepublic void executeExecutionLifecycleCleanup(org.smooks.api.ExecutionContext executionContext)
executeExecutionLifecycleCleanup in interface org.smooks.api.lifecycle.ExecutionLifecycleCleanableCopyright © 2021. All rights reserved.