org.apache.servicemix.eip.support
Class AbstractSplitter
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.AbstractSplitter
- All Implemented Interfaces:
- org.apache.servicemix.common.Endpoint
- Direct Known Subclasses:
- XPathSplitter
public abstract class AbstractSplitter
- extends EIPEndpoint
The AbstractSplitter is an abstract base class for Splitters.
This component implements the
Splitter
pattern.
- Version:
- $Revision: 376451 $
- Author:
- gnodet
| Fields inherited from class org.apache.servicemix.common.endpoints.AbstractEndpoint |
definition, description, endpoint, interfaceName, logger, service, serviceUnit |
| 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, stop |
| Methods inherited from class org.apache.servicemix.common.endpoints.ProviderEndpoint |
activate, deactivate, getRole, processInOnly, processInOut |
| Methods inherited from class org.apache.servicemix.common.endpoints.SimpleEndpoint |
done, fail, getChannel, getContext, getExchangeFactory, send, sendSync |
| Methods inherited from class org.apache.servicemix.common.endpoints.AbstractEndpoint |
getEndpoint, getInterfaceName, getKey, getService, getServiceUnit, isExchangeOkay, prepareExchange, setDefinition, setDescription, setEndpoint, setInterfaceName, setService, setServiceUnit, toString |
SPLITTER_COUNT
public static final String SPLITTER_COUNT
- See Also:
- Constant Field Values
SPLITTER_INDEX
public static final String SPLITTER_INDEX
- See Also:
- Constant Field Values
SPLITTER_CORRID
public static final String SPLITTER_CORRID
- See Also:
- Constant Field Values
AbstractSplitter
public AbstractSplitter()
isSynchronous
public boolean isSynchronous()
- Returns:
- the synchronous
setSynchronous
public void setSynchronous(boolean synchronous)
- Parameters:
synchronous - the synchronous to set
isReportErrors
public boolean isReportErrors()
- Returns:
- Returns the reportErrors.
setReportErrors
public void setReportErrors(boolean reportErrors)
- Parameters:
reportErrors - The reportErrors to set.
getTarget
public ExchangeTarget getTarget()
- Returns:
- Returns the target.
setTarget
public void setTarget(ExchangeTarget target)
- Parameters:
target - The target to set.
isForwardAttachments
public boolean isForwardAttachments()
- Returns:
- Returns the forwardAttachments.
setForwardAttachments
public void setForwardAttachments(boolean forwardAttachments)
- Parameters:
forwardAttachments - The forwardAttachments to set.
isForwardProperties
public boolean isForwardProperties()
- Returns:
- Returns the forwardProperties.
setForwardProperties
public void setForwardProperties(boolean forwardProperties)
- Parameters:
forwardProperties - The forwardProperties to set.
validate
public void validate()
throws javax.jbi.management.DeploymentException
- Specified by:
validate in interface org.apache.servicemix.common.Endpoint- Overrides:
validate in class org.apache.servicemix.common.endpoints.AbstractEndpoint
- Throws:
javax.jbi.management.DeploymentException
start
public void start()
throws Exception
- Specified by:
start in interface org.apache.servicemix.common.Endpoint- Overrides:
start in class EIPEndpoint
- Throws:
Exception
processSync
protected void processSync(javax.jbi.messaging.MessageExchange exchange)
throws Exception
- Specified by:
processSync in class EIPEndpoint
- Throws:
Exception
processAsync
protected void processAsync(javax.jbi.messaging.MessageExchange exchange)
throws Exception
- Specified by:
processAsync in class EIPEndpoint
- Throws:
Exception
createParts
protected javax.jbi.messaging.MessageExchange[] createParts(javax.jbi.messaging.MessageExchange exchange)
throws Exception
- Throws:
Exception
createPart
protected javax.jbi.messaging.MessageExchange createPart(URI pattern,
javax.jbi.messaging.NormalizedMessage srcMessage,
Source content)
throws Exception
- Throws:
Exception
split
protected abstract Source[] split(Source main)
throws Exception
- Throws:
Exception
Copyright © 2005-2008 Apache Software Foundation. All Rights Reserved.