org.apache.servicemix.eip.support
Class AbstractContentBasedRouter
java.lang.Object
org.apache.servicemix.common.endpoints.AbstractEndpoint
org.apache.servicemix.common.endpoints.SimpleEndpoint
org.apache.servicemix.common.endpoints.ProviderEndpoint
org.apache.servicemix.eip.EIPEndpoint
org.apache.servicemix.eip.support.AbstractContentBasedRouter
- All Implemented Interfaces:
- Endpoint
- Direct Known Subclasses:
- ContentBasedRouter
public abstract class AbstractContentBasedRouter
- extends EIPEndpoint
AbstractContentBasedRouter can be used as a base class for content-based routing.
This component implements the
Content-Based Router
pattern.
- Version:
- $Revision: 376451 $
- Author:
- gnodet
| Methods inherited from class org.apache.servicemix.eip.EIPEndpoint |
chooseFirstEndpointWithDescriptor, copyAttachments, copyProperties, getDefinition, getDefinitionFromDescription, getDefinitionFromWsdlExchangeTarget, getDefinitionFromWsdlResource, getDescription, getDescriptionForExchangeTarget, getEndpointsForExchangeTarget, getLockManager, getStore, getStoreFactory, getTimerManager, getWsdlExchangeTarget, getWsdlResource, process, setLockManager, setStore, setStoreFactory, setTimerManager, setWsdlExchangeTarget, setWsdlResource, start, stop |
| Methods inherited from class org.apache.servicemix.common.endpoints.AbstractEndpoint |
getEndpoint, getInterfaceName, getKey, getService, getServiceUnit, isExchangeOkay, prepareExchange, setDefinition, setDescription, setEndpoint, setInterfaceName, setService, setServiceUnit, toString |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
AbstractContentBasedRouter
public AbstractContentBasedRouter()
isForwardOperation
public boolean isForwardOperation()
setForwardOperation
public void setForwardOperation(boolean forwardOperation)
- Forward the operation qname when sending the exchange to the target.
- Parameters:
forwardOperation -
validate
public void validate()
throws javax.jbi.management.DeploymentException
- Specified by:
validate in interface Endpoint- Overrides:
validate in class AbstractEndpoint
- Throws:
javax.jbi.management.DeploymentException
processSync
protected void processSync(javax.jbi.messaging.MessageExchange exchange)
throws java.lang.Exception
- Specified by:
processSync in class EIPEndpoint
- Throws:
java.lang.Exception
processAsync
protected void processAsync(javax.jbi.messaging.MessageExchange exchange)
throws java.lang.Exception
- Specified by:
processAsync in class EIPEndpoint
- Throws:
java.lang.Exception
getDestination
protected abstract ExchangeTarget getDestination(javax.jbi.messaging.MessageExchange exchange)
throws java.lang.Exception
- Find the target destination for the given JBI exchange
- Parameters:
exchange -
- Returns:
- the target for the given exchange
- Throws:
java.lang.Exception
Copyright © 2005-2011 FuseSource. All Rights Reserved.