org.apache.servicemix.eip.support
Class ExchangeTarget

java.lang.Object
  extended by org.apache.servicemix.eip.support.ExchangeTarget
All Implemented Interfaces:
org.springframework.beans.factory.InitializingBean

public class ExchangeTarget
extends java.lang.Object
implements org.springframework.beans.factory.InitializingBean

An ExchangeTarget may be used to specify the target of an exchange, while retaining all the JBI features (interface based routing, service name based routing or endpoint routing).

Version:
$Revision: 376451 $
Author:
gnodet

Constructor Summary
ExchangeTarget()
           
 
Method Summary
 void afterPropertiesSet()
           
 void configureTarget(javax.jbi.messaging.MessageExchange exchange, javax.jbi.component.ComponentContext context)
          Configures the target on the newly created exchange
 java.lang.String getEndpoint()
           
 javax.xml.namespace.QName getInterface()
           
 javax.xml.namespace.QName getOperation()
          The operation QName that will be set on the exchange
 javax.xml.namespace.QName getService()
           
 java.lang.String getUri()
           
 void setEndpoint(java.lang.String endpoint)
          The endpoint name of the target.
 void setInterface(javax.xml.namespace.QName itf)
          The interface QName implemented by the target
 void setOperation(javax.xml.namespace.QName operation)
          The operation QName invoked on this target.
 void setService(javax.xml.namespace.QName service)
          The service QName of the target
 void setUri(java.lang.String uri)
          An URI identifying the target
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ExchangeTarget

public ExchangeTarget()
Method Detail

getEndpoint

public java.lang.String getEndpoint()
Returns:
Returns the endpoint.

setEndpoint

public void setEndpoint(java.lang.String endpoint)
The endpoint name of the target.

Parameters:
endpoint - The endpoint to set.

getInterface

public javax.xml.namespace.QName getInterface()
Returns:
Returns the interface name.

setInterface

public void setInterface(javax.xml.namespace.QName itf)
The interface QName implemented by the target

Parameters:
itf - The interface name to set.

getOperation

public javax.xml.namespace.QName getOperation()
The operation QName that will be set on the exchange

Returns:
Returns the operation name.

setOperation

public void setOperation(javax.xml.namespace.QName operation)
The operation QName invoked on this target.

Parameters:
operation - The operation to set.

getService

public javax.xml.namespace.QName getService()
Returns:
Returns the service.

setService

public void setService(javax.xml.namespace.QName service)
The service QName of the target

Parameters:
service - The service to set.

getUri

public java.lang.String getUri()
Returns:
the uri

setUri

public void setUri(java.lang.String uri)
An URI identifying the target

Parameters:
uri - the uri to set

configureTarget

public void configureTarget(javax.jbi.messaging.MessageExchange exchange,
                            javax.jbi.component.ComponentContext context)
                     throws javax.jbi.messaging.MessagingException
Configures the target on the newly created exchange

Parameters:
exchange - the exchange to configure
Throws:
javax.jbi.messaging.MessagingException - if the target could not be configured

afterPropertiesSet

public void afterPropertiesSet()
                        throws java.lang.Exception
Specified by:
afterPropertiesSet in interface org.springframework.beans.factory.InitializingBean
Throws:
java.lang.Exception


Copyright © 2005-2011 FuseSource. All Rights Reserved.