org.apache.servicemix.eip.patterns
Class StaticRecipientList

java.lang.Object
  extended by org.apache.servicemix.common.endpoints.AbstractEndpoint
      extended by org.apache.servicemix.common.endpoints.SimpleEndpoint
          extended by org.apache.servicemix.common.endpoints.ProviderEndpoint
              extended by org.apache.servicemix.eip.EIPEndpoint
                  extended by org.apache.servicemix.eip.patterns.StaticRecipientList
All Implemented Interfaces:
org.apache.servicemix.common.Endpoint

public class StaticRecipientList
extends EIPEndpoint

The StaticRecipientList component will forward an input In-Only or Robust-In-Only exchange to a list of known recipients. This component implements the Recipient List pattern, with the limitation that the recipient list is static.

Version:
$Revision: 376451 $
Author:
gnodet

Field Summary
static String RECIPIENT_LIST_CORRID
           
static String RECIPIENT_LIST_COUNT
           
static String RECIPIENT_LIST_INDEX
           
 
Fields inherited from class org.apache.servicemix.eip.EIPEndpoint
lockManager, store, storeFactory, timerManager, wsdlExchangeTarget, wsdlResource
 
Fields inherited from class org.apache.servicemix.common.endpoints.AbstractEndpoint
definition, description, endpoint, interfaceName, logger, service, serviceUnit
 
Constructor Summary
StaticRecipientList()
           
 
Method Summary
 ExchangeTarget[] getRecipients()
           
 boolean isReportErrors()
           
protected  void processAsync(javax.jbi.messaging.MessageExchange exchange)
           
protected  void processSync(javax.jbi.messaging.MessageExchange exchange)
           
 void setRecipients(ExchangeTarget[] recipients)
           
 void setReportErrors(boolean reportErrors)
           
 void validate()
           
 
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.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
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

RECIPIENT_LIST_COUNT

public static final String RECIPIENT_LIST_COUNT
See Also:
Constant Field Values

RECIPIENT_LIST_INDEX

public static final String RECIPIENT_LIST_INDEX
See Also:
Constant Field Values

RECIPIENT_LIST_CORRID

public static final String RECIPIENT_LIST_CORRID
See Also:
Constant Field Values
Constructor Detail

StaticRecipientList

public StaticRecipientList()
Method Detail

getRecipients

public ExchangeTarget[] getRecipients()
Returns:
Returns the recipients.

setRecipients

public void setRecipients(ExchangeTarget[] recipients)
Parameters:
recipients - The recipients to set.

isReportErrors

public boolean isReportErrors()
Returns:
Returns the reportErrors.

setReportErrors

public void setReportErrors(boolean reportErrors)
Parameters:
reportErrors - The reportErrors 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

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


Copyright © 2005-2008 Apache Software Foundation. All Rights Reserved.