Package org.apache.cxf.message
Class ExchangeImpl
- java.lang.Object
- 
- java.util.AbstractMap<K,V>
- 
- java.util.concurrent.ConcurrentHashMap<String,Object>
- 
- org.apache.cxf.message.ExchangeImpl
 
 
 
- 
- All Implemented Interfaces:
- Serializable,- ConcurrentMap<String,Object>,- Map<String,Object>,- Exchange,- StringMap
 
 public class ExchangeImpl extends ConcurrentHashMap<String,Object> implements Exchange - See Also:
- Serialized Form
 
- 
- 
Nested Class Summary- 
Nested classes/interfaces inherited from class java.util.concurrent.ConcurrentHashMapConcurrentHashMap.KeySetView<K extends Object,V extends Object>
 - 
Nested classes/interfaces inherited from class java.util.AbstractMapAbstractMap.SimpleEntry<K extends Object,V extends Object>, AbstractMap.SimpleImmutableEntry<K extends Object,V extends Object>
 
- 
 - 
Constructor SummaryConstructors Constructor Description ExchangeImpl()ExchangeImpl(ExchangeImpl ex)
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description voidclear()<T> Tget(Class<T> key)Convenience method for storing/retrieving typed objects from the map.BindinggetBinding()BindingOperationInfogetBindingOperationInfo()BusgetBus()ConduitgetConduit(Message message)DestinationgetDestination()EndpointgetEndpoint()MessagegetInFaultMessage()MessagegetInMessage()Returns the inbound message for the exchange.MessagegetOutFaultMessage()MessagegetOutMessage()Returns the outbound message for the exchange.ServicegetService()SessiongetSession()booleanisOneWay()Determines if the exchange is one-way.booleanisSynchronous()Determines if the exchange requires the frontend to wait for a response.<T> voidput(Class<T> key, T value)Convenience method for storing/retrieving typed objects from the map.Objectput(String key, Object value)voidputAll(Map<? extends String,?> m)<T> Tremove(Class<T> key)Convenience method for removing typed objects from the map.voidsetConduit(Conduit c)voidsetDestination(Destination d)voidsetInFaultMessage(Message m)voidsetInMessage(Message m)voidsetOneWay(boolean b)voidsetOutFaultMessage(Message m)voidsetOutMessage(Message m)voidsetSession(Session session)voidsetSynchronous(boolean b)- 
Methods inherited from class java.util.concurrent.ConcurrentHashMapcompute, computeIfAbsent, computeIfPresent, contains, containsKey, containsValue, elements, entrySet, equals, forEach, forEach, forEach, forEachEntry, forEachEntry, forEachKey, forEachKey, forEachValue, forEachValue, get, getOrDefault, hashCode, isEmpty, keys, keySet, keySet, mappingCount, merge, newKeySet, newKeySet, putIfAbsent, reduce, reduceEntries, reduceEntries, reduceEntriesToDouble, reduceEntriesToInt, reduceEntriesToLong, reduceKeys, reduceKeys, reduceKeysToDouble, reduceKeysToInt, reduceKeysToLong, reduceToDouble, reduceToInt, reduceToLong, reduceValues, reduceValues, reduceValuesToDouble, reduceValuesToInt, reduceValuesToLong, remove, remove, replace, replace, replaceAll, search, searchEntries, searchKeys, searchValues, size, toString, values
 - 
Methods inherited from class java.util.AbstractMapclone
 
- 
 
- 
- 
- 
Constructor Detail- 
ExchangeImplpublic ExchangeImpl() 
 - 
ExchangeImplpublic ExchangeImpl(ExchangeImpl ex) 
 
- 
 - 
Method Detail- 
getpublic <T> T get(Class<T> key) Description copied from interface:StringMapConvenience method for storing/retrieving typed objects from the map. equivalent to: (T)get(key.getName());
 - 
putpublic <T> void put(Class<T> key, T value) Description copied from interface:StringMapConvenience method for storing/retrieving typed objects from the map. equivalent to: put(key.getName(), value);
 - 
removepublic <T> T remove(Class<T> key) Description copied from interface:StringMapConvenience method for removing typed objects from the map. equivalent to: (T)remove(key.getName());
 - 
getDestinationpublic Destination getDestination() - Specified by:
- getDestinationin interface- Exchange
- Returns:
- the associated incoming Destination (may be anonymous)
 
 - 
getInMessagepublic Message getInMessage() Description copied from interface:ExchangeReturns the inbound message for the exchange. On the client-side, this is the response. On the server-side, this is the request.- Specified by:
- getInMessagein interface- Exchange
- Returns:
- the inbound message
 
 - 
getConduitpublic Conduit getConduit(Message message) - Specified by:
- getConduitin interface- Exchange
- Parameters:
- message- the associated message
- Returns:
- the associated outgoing Conduit (may be anonymous)
 
 - 
getOutMessagepublic Message getOutMessage() Description copied from interface:ExchangeReturns the outbound message for the exchange. On the client-side, this is the request. On the server-side, this is the response. During the inbound message processing, the outbound message is null.- Specified by:
- getOutMessagein interface- Exchange
- Returns:
- the outbound message
 
 - 
getInFaultMessagepublic Message getInFaultMessage() - Specified by:
- getInFaultMessagein interface- Exchange
 
 - 
setInFaultMessagepublic void setInFaultMessage(Message m) - Specified by:
- setInFaultMessagein interface- Exchange
 
 - 
getOutFaultMessagepublic Message getOutFaultMessage() - Specified by:
- getOutFaultMessagein interface- Exchange
 
 - 
setOutFaultMessagepublic void setOutFaultMessage(Message m) - Specified by:
- setOutFaultMessagein interface- Exchange
 
 - 
setDestinationpublic void setDestination(Destination d) - Specified by:
- setDestinationin interface- Exchange
- Parameters:
- d- the associated incoming Destination
 
 - 
setInMessagepublic void setInMessage(Message m) - Specified by:
- setInMessagein interface- Exchange
 
 - 
setConduitpublic void setConduit(Conduit c) - Specified by:
- setConduitin interface- Exchange
- Parameters:
- c- the associated outgoing Conduit
 
 - 
setOutMessagepublic void setOutMessage(Message m) - Specified by:
- setOutMessagein interface- Exchange
 
 - 
isOneWaypublic boolean isOneWay() Description copied from interface:ExchangeDetermines if the exchange is one-way.
 - 
setOneWaypublic void setOneWay(boolean b) 
 - 
isSynchronouspublic boolean isSynchronous() Description copied from interface:ExchangeDetermines if the exchange requires the frontend to wait for a response. Transports can then optimize themselves to process the response immediately instead of using a background thread or similar.- Specified by:
- isSynchronousin interface- Exchange
- Returns:
- true if the frontend will wait for the response
 
 - 
setSynchronouspublic void setSynchronous(boolean b) - Specified by:
- setSynchronousin interface- Exchange
 
 - 
getSessionpublic Session getSession() - Specified by:
- getSessionin interface- Exchange
 
 - 
setSessionpublic void setSession(Session session) 
 - 
clearpublic void clear() Description copied from interface:Exchange
 - 
getEndpointpublic Endpoint getEndpoint() - Specified by:
- getEndpointin interface- Exchange
 
 - 
getServicepublic Service getService() - Specified by:
- getServicein interface- Exchange
 
 - 
getBindingpublic Binding getBinding() - Specified by:
- getBindingin interface- Exchange
 
 - 
getBindingOperationInfopublic BindingOperationInfo getBindingOperationInfo() - Specified by:
- getBindingOperationInfoin interface- Exchange
 
 
- 
 
-