TIBCO ActiveMatrix Mediation Implementation Type v3.3.1

com.tibco.mediation.task.rt
Interface Exchange<N>


public interface Exchange<N>

Interface Exchange encapsulates the data flowing through a process flow for a particular message. The interface provides accessor methods to retrieve message data, context, exchange variable and properties for a particular message exchange.


Method Summary
 DataBindingType getDataBindingType()
          Returns the data binding type.
 N getExchangeVariable()
          The getExchangeVariable method returns the exchange variable for a particular message exchange in the current path
 N getMessageData()
          The getMessageData method returns the message data for a particular message exchange in the current path.
 java.lang.Object getProperty(java.lang.String key)
          Searches for the property with the specified key in this property list.
 java.lang.Iterable<java.lang.String> getPropertyNames()
          Returns an Iterbale of all the keys in this property list.
 GxProcessingContext getXMLProcessingContext()
          Gets the gXML processing context for the right data binding type
 

Method Detail

getMessageData

N getMessageData()
The getMessageData method returns the message data for a particular message exchange in the current path. The message data can be one of the following:

Returns:
message data in the current path for a message exchange.

getExchangeVariable

N getExchangeVariable()
The getExchangeVariable method returns the exchange variable for a particular message exchange in the current path

Returns:
exchange variable in the current path for a message exchange.

getPropertyNames

java.lang.Iterable<java.lang.String> getPropertyNames()
Returns an Iterbale of all the keys in this property list. This method returns the same value as com.tibco.mediation.task.context.FlowContext#getPropertyNames()

Returns:
an Iterable of all the keys in this property list
See Also:
Iterable, getProperty(String)

getProperty

java.lang.Object getProperty(java.lang.String key)
Searches for the property with the specified key in this property list. This method returns the same value as com.tibco.mediation.task.context.FlowContext#getProperty(String)

Parameters:
key - the key
Returns:
the value in this property list with the specified key value.
See Also:
getPropertyNames(), com.tibco.mediation.task.context.FlowContext#getPropertyNames()

getXMLProcessingContext

GxProcessingContext getXMLProcessingContext()
Gets the gXML processing context for the right data binding type

Returns:
GxProcessingContext

getDataBindingType

DataBindingType getDataBindingType()
Returns the data binding type. This translates to which data model is being used for the generic N

Returns:
data binding class name

TIBCO ActiveMatrix Mediation Implementation Type v3.3.1

Copyright © 2010 TIBCO Software Inc. All Rights Reserved.