Apache CXF API

org.apache.cxf.message
Interface Exchange

All Superinterfaces:
java.util.Map<java.lang.String,java.lang.Object>
All Known Implementing Classes:
ExchangeImpl

public interface Exchange
extends java.util.Map<java.lang.String,java.lang.Object>


Nested Class Summary
 
Nested classes/interfaces inherited from interface java.util.Map
java.util.Map.Entry<K,V>
 
Method Summary
<T> T
get(java.lang.Class<T> key)
          Convenience method for storing/retrieving typed objects from the map.
 Conduit getConduit()
           
 Destination getDestination()
           
 Message getInFaultMessage()
           
 Message getInMessage()
           
 Message getOutFaultMessage()
           
 Message getOutMessage()
           
 Session getSession()
           
 boolean isOneWay()
           
<T> void
put(java.lang.Class<T> key, T value)
          Convenience method for storing/retrieving typed objects from the map.
 void setConduit(Conduit conduit)
           
 void setDestination(Destination destination)
           
 void setInFaultMessage(Message m)
           
 void setInMessage(Message m)
           
 void setOneWay(boolean b)
           
 void setOutFaultMessage(Message m)
           
 void setOutMessage(Message m)
           
 
Methods inherited from interface java.util.Map
clear, containsKey, containsValue, entrySet, equals, get, hashCode, isEmpty, keySet, put, putAll, remove, size, values
 

Method Detail

getInMessage

Message getInMessage()

setInMessage

void setInMessage(Message m)

getOutMessage

Message getOutMessage()

setOutMessage

void setOutMessage(Message m)

getInFaultMessage

Message getInFaultMessage()

setInFaultMessage

void setInFaultMessage(Message m)

getOutFaultMessage

Message getOutFaultMessage()

setOutFaultMessage

void setOutFaultMessage(Message m)

getSession

Session getSession()

getDestination

Destination getDestination()
Returns:
the associated incoming Destination (may be anonymous)

setDestination

void setDestination(Destination destination)
Parameters:
destination - the associated incoming Destination

getConduit

Conduit getConduit()
Returns:
the associated outgoing Conduit (may be anonymous)

setConduit

void setConduit(Conduit conduit)
Parameters:
conduit - the associated outgoing Conduit

isOneWay

boolean isOneWay()
Returns:
true if the exchange is known to be a one-way exchange

setOneWay

void setOneWay(boolean b)
Parameters:
b - true if the exchange is known to be a one-way exchange

get

<T> T get(java.lang.Class<T> key)
Convenience method for storing/retrieving typed objects from the map. equivalent to: (T)get(key.getName());

Parameters:
key - the key
Returns:
the value

put

<T> void put(java.lang.Class<T> key,
             T value)
Convenience method for storing/retrieving typed objects from the map. equivalent to: put(key.getName(), value);

Parameters:
key - the key
value - the value

Apache CXF API

Apache CXF is an effort undergoing incubation at the Apache Software Foundation(ASF) and sponsored by the Apache Incubator PMC.