Package org.apache.cxf.message
Class ExchangeImpl
- All Implemented Interfaces:
Serializable
,ConcurrentMap<String,
,Object> Map<String,
,Object> Exchange
,StringMap
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from class java.util.concurrent.ConcurrentHashMap
ConcurrentHashMap.KeySetView<K extends Object,
V extends Object> Nested classes/interfaces inherited from class java.util.AbstractMap
AbstractMap.SimpleEntry<K extends Object,
V extends Object>, AbstractMap.SimpleImmutableEntry<K extends Object, V extends Object> -
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
clear()
<T> T
Convenience method for storing/retrieving typed objects from the map.getBus()
getConduit
(Message message) Returns the inbound message for the exchange.Returns the outbound message for the exchange.boolean
isOneWay()
Determines if the exchange is one-way.boolean
Determines if the exchange requires the frontend to wait for a response.<T> void
Convenience method for storing/retrieving typed objects from the map.void
<T> T
Convenience method for removing typed objects from the map.void
void
void
void
void
setOneWay
(boolean b) void
void
void
setSession
(Session session) void
setSynchronous
(boolean b) Methods inherited from class java.util.concurrent.ConcurrentHashMap
compute, 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.AbstractMap
clone
-
Constructor Details
-
ExchangeImpl
public ExchangeImpl() -
ExchangeImpl
-
-
Method Details
-
get
Description copied from interface:StringMap
Convenience method for storing/retrieving typed objects from the map. equivalent to: (T)get(key.getName()); -
putAll
-
put
Description copied from interface:StringMap
Convenience method for storing/retrieving typed objects from the map. equivalent to: put(key.getName(), value); -
put
-
remove
Description copied from interface:StringMap
Convenience method for removing typed objects from the map. equivalent to: (T)remove(key.getName()); -
getDestination
- Specified by:
getDestination
in interfaceExchange
- Returns:
- the associated incoming Destination (may be anonymous)
-
getInMessage
Description copied from interface:Exchange
Returns the inbound message for the exchange. On the client-side, this is the response. On the server-side, this is the request.- Specified by:
getInMessage
in interfaceExchange
- Returns:
- the inbound message
-
getConduit
- Specified by:
getConduit
in interfaceExchange
- Parameters:
message
- the associated message- Returns:
- the associated outgoing Conduit (may be anonymous)
-
getOutMessage
Description copied from interface:Exchange
Returns 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:
getOutMessage
in interfaceExchange
- Returns:
- the outbound message
-
getInFaultMessage
- Specified by:
getInFaultMessage
in interfaceExchange
-
setInFaultMessage
- Specified by:
setInFaultMessage
in interfaceExchange
-
getOutFaultMessage
- Specified by:
getOutFaultMessage
in interfaceExchange
-
setOutFaultMessage
- Specified by:
setOutFaultMessage
in interfaceExchange
-
setDestination
- Specified by:
setDestination
in interfaceExchange
- Parameters:
d
- the associated incoming Destination
-
setInMessage
- Specified by:
setInMessage
in interfaceExchange
-
setConduit
- Specified by:
setConduit
in interfaceExchange
- Parameters:
c
- the associated outgoing Conduit
-
setOutMessage
- Specified by:
setOutMessage
in interfaceExchange
-
isOneWay
public boolean isOneWay()Description copied from interface:Exchange
Determines if the exchange is one-way. -
setOneWay
public void setOneWay(boolean b) -
isSynchronous
public boolean isSynchronous()Description copied from interface:Exchange
Determines 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:
isSynchronous
in interfaceExchange
- Returns:
- true if the frontend will wait for the response
-
setSynchronous
public void setSynchronous(boolean b) - Specified by:
setSynchronous
in interfaceExchange
-
getSession
- Specified by:
getSession
in interfaceExchange
-
setSession
-
clear
public void clear()Description copied from interface:Exchange
-
getBus
-
getEndpoint
- Specified by:
getEndpoint
in interfaceExchange
-
getService
- Specified by:
getService
in interfaceExchange
-
getBinding
- Specified by:
getBinding
in interfaceExchange
-
getBindingOperationInfo
- Specified by:
getBindingOperationInfo
in interfaceExchange
-