org.apache.cxf.message
Class ExchangeImpl
java.lang.Object
java.util.AbstractMap<K,V>
java.util.HashMap<java.lang.String,java.lang.Object>
org.apache.cxf.message.ExchangeImpl
- All Implemented Interfaces:
- java.io.Serializable, java.lang.Cloneable, java.util.Map<java.lang.String,java.lang.Object>, Exchange
public class ExchangeImpl
- extends java.util.HashMap<java.lang.String,java.lang.Object>
- implements Exchange
- See Also:
- Serialized Form
Nested classes/interfaces inherited from interface java.util.Map |
java.util.Map.Entry<K,V> |
Methods inherited from class java.util.HashMap |
clear, clone, containsKey, containsValue, entrySet, get, isEmpty, keySet, put, putAll, remove, size, values |
Methods inherited from class java.util.AbstractMap |
equals, hashCode, toString |
Methods inherited from class java.lang.Object |
finalize, getClass, notify, notifyAll, wait, wait, wait |
Methods inherited from interface java.util.Map |
clear, containsKey, containsValue, entrySet, equals, get, hashCode, isEmpty, keySet, put, putAll, remove, size, values |
ExchangeImpl
public ExchangeImpl()
getDestination
public Destination getDestination()
- Specified by:
getDestination
in interface Exchange
- Returns:
- the associated incoming Destination (may be anonymous)
getInMessage
public Message getInMessage()
- Specified by:
getInMessage
in interface Exchange
getConduit
public Conduit getConduit()
- Specified by:
getConduit
in interface Exchange
- Returns:
- the associated outgoing Conduit (may be anonymous)
getOutMessage
public Message getOutMessage()
- Specified by:
getOutMessage
in interface Exchange
getInFaultMessage
public Message getInFaultMessage()
- Specified by:
getInFaultMessage
in interface Exchange
setInFaultMessage
public void setInFaultMessage(Message m)
- Specified by:
setInFaultMessage
in interface Exchange
getOutFaultMessage
public Message getOutFaultMessage()
- Specified by:
getOutFaultMessage
in interface Exchange
setOutFaultMessage
public void setOutFaultMessage(Message m)
- Specified by:
setOutFaultMessage
in interface Exchange
setDestination
public void setDestination(Destination d)
- Specified by:
setDestination
in interface Exchange
- Parameters:
d
- the associated incoming Destination
setInMessage
public void setInMessage(Message m)
- Specified by:
setInMessage
in interface Exchange
setConduit
public void setConduit(Conduit c)
- Specified by:
setConduit
in interface Exchange
- Parameters:
c
- the associated outgoing Conduit
setOutMessage
public void setOutMessage(Message m)
- Specified by:
setOutMessage
in interface Exchange
get
public <T> T get(java.lang.Class<T> key)
- Description copied from interface:
Exchange
- Convenience method for storing/retrieving typed objects from the map.
equivalent to: (T)get(key.getName());
- Specified by:
get
in interface Exchange
- Parameters:
key
- the key
- Returns:
- the value
put
public <T> void put(java.lang.Class<T> key,
T value)
- Description copied from interface:
Exchange
- Convenience method for storing/retrieving typed objects from the map.
equivalent to: put(key.getName(), value);
- Specified by:
put
in interface Exchange
- Parameters:
key
- the keyvalue
- the value
isOneWay
public boolean isOneWay()
- Specified by:
isOneWay
in interface Exchange
- Returns:
- true if the exchange is known to be a one-way exchange
setOneWay
public void setOneWay(boolean b)
- Specified by:
setOneWay
in interface Exchange
- Parameters:
b
- true if the exchange is known to be a one-way exchange
getSession
public Session getSession()
- Specified by:
getSession
in interface Exchange
setSession
public void setSession(Session session)
Apache CXF is an effort undergoing incubation at the Apache Software Foundation(ASF) and sponsored by the Apache Incubator PMC.