org.apache.servicemix.eip.patterns
Class MessageFilter
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.patterns.MessageFilter
- All Implemented Interfaces:
- Endpoint
public class MessageFilter
- extends EIPEndpoint
MessageFilter allows filtering incoming JBI exchanges.
This component implements the
Message Filter
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 |
MessageFilter
public MessageFilter()
getTarget
public ExchangeTarget getTarget()
- Returns:
- Returns the target.
setTarget
public void setTarget(ExchangeTarget target)
- The main target destination which will receive the exchange
- Parameters:
target - The target to set.
getFilter
public Predicate getFilter()
- Returns:
- Returns the filter.
setFilter
public void setFilter(Predicate filter)
- The filter to use on incoming messages
- Parameters:
filter - The filter to set.
isReportErrors
public boolean isReportErrors()
- Returns:
- Returns the reportErrors.
setReportErrors
public void setReportErrors(boolean reportErrors)
- Indicates if faults and errors from recipients should be sent
back to the consumer. In such a case, only the first fault or
error received will be reported.
Note that if the consumer is synchronous, it will be blocked
until all recipients successfully acked the exchange, or
a fault or error is reported, and the exchange will be kept in the
store for recovery.
- Parameters:
reportErrors - The reportErrors to set.
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
Copyright © 2005-2011 FuseSource. All Rights Reserved.