org.apache.cxf.message
Class ExchangeImpl
java.lang.Object
   java.util.AbstractMap<K,V>
java.util.AbstractMap<K,V>
       java.util.HashMap<String,Object>
java.util.HashMap<String,Object>
           org.apache.cxf.message.StringMapImpl
org.apache.cxf.message.StringMapImpl
               org.apache.cxf.message.ExchangeImpl
org.apache.cxf.message.ExchangeImpl
- All Implemented Interfaces: 
- Serializable, Cloneable, Map<String,Object>, Exchange, StringMap
- public class ExchangeImpl 
- extends StringMapImpl- implements Exchange
- See Also:
- Serialized Form
 
| Nested classes/interfaces inherited from interface java.util.Map | 
| Map.Entry<K,V> | 
 
 
 
 
| Methods inherited from class java.util.HashMap | 
| clone, containsKey, containsValue, entrySet, get, isEmpty, keySet, putAll, remove, size, values | 
 
 
 
| Methods inherited from interface org.apache.cxf.message.StringMap | 
| get | 
 
| Methods inherited from interface java.util.Map | 
| containsKey, containsValue, entrySet, equals, get, hashCode, isEmpty, keySet, putAll, remove, size, values | 
 
ExchangeImpl
public ExchangeImpl()
put
public <T> void put(Class<T> key,
                    T value)
- Description copied from interface: StringMap
- Convenience method for storing/retrieving typed objects from the map.
 equivalent to:  put(key.getName(), value);
 
- 
- Specified by:
- putin interface- StringMap
- Overrides:
- putin class- StringMapImpl
 
- 
- Parameters:
- key- the key
- value- the value
 
put
public Object put(String key,
                  Object value)
- 
- Specified by:
- putin interface- Map<String,Object>
- Overrides:
- putin class- HashMap<String,Object>
 
- 
 
getDestination
public Destination getDestination()
- 
- Specified by:
- getDestinationin interface- Exchange
 
- 
- Returns:
- the associated incoming Destination (may be anonymous)
 
getInMessage
public Message 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:
- getInMessagein interface- Exchange
 
- 
- Returns:
- the inboubnd message
 
getConduit
public Conduit getConduit(Message message)
- 
- Specified by:
- getConduitin interface- Exchange
 
- 
- Parameters:
- message- the associated message
- Returns:
- the associated outgoing Conduit (may be anonymous)
 
getOutMessage
public Message 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:
- getOutMessagein interface- Exchange
 
- 
- Returns:
- the outbound message
 
getInFaultMessage
public Message getInFaultMessage()
- 
- Specified by:
- getInFaultMessagein interface- Exchange
 
- 
 
setInFaultMessage
public void setInFaultMessage(Message m)
- 
- Specified by:
- setInFaultMessagein interface- Exchange
 
- 
 
getOutFaultMessage
public Message getOutFaultMessage()
- 
- Specified by:
- getOutFaultMessagein interface- Exchange
 
- 
 
setOutFaultMessage
public void setOutFaultMessage(Message m)
- 
- Specified by:
- setOutFaultMessagein interface- Exchange
 
- 
 
setDestination
public void setDestination(Destination d)
- 
- Specified by:
- setDestinationin interface- Exchange
 
- 
- Parameters:
- d- the associated incoming Destination
 
setInMessage
public void setInMessage(Message m)
- 
- Specified by:
- setInMessagein interface- Exchange
 
- 
 
setConduit
public void setConduit(Conduit c)
- 
- Specified by:
- setConduitin interface- Exchange
 
- 
- Parameters:
- c- the associated outgoing Conduit
 
setOutMessage
public void setOutMessage(Message m)
- 
- Specified by:
- setOutMessagein interface- Exchange
 
- 
 
isOneWay
public boolean isOneWay()
- Description copied from interface: Exchange
- Determines if the exchange is one-way.
 
- 
- Specified by:
- isOneWayin interface- Exchange
 
- 
- Returns:
- true if the exchange is known to be a one-way exchange
 
setOneWay
public void setOneWay(boolean b)
- 
- Specified by:
- setOneWayin interface- Exchange
 
- 
- Parameters:
- b- true if the exchange is known to be a one-way exchange
 
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:
- isSynchronousin interface- Exchange
 
- 
- Returns:
- true if the frontend will wait for the response
 
setSynchronous
public void setSynchronous(boolean b)
- 
- Specified by:
- setSynchronousin interface- Exchange
 
- 
 
getSession
public Session getSession()
- 
- Specified by:
- getSessionin interface- Exchange
 
- 
 
setSession
public void setSession(Session session)
- 
 
- 
 
clear
public void clear()
- Description copied from interface: Exchange
- 
 
- 
- Specified by:
- clearin interface- Map<String,Object>
- Specified by:
- clearin interface- Exchange
- Overrides:
- clearin class- HashMap<String,Object>
 
- 
 
getBus
public Bus getBus()
- 
- Specified by:
- getBusin interface- Exchange
 
- 
 
getEndpoint
public Endpoint getEndpoint()
- 
- Specified by:
- getEndpointin interface- Exchange
 
- 
 
getService
public Service getService()
- 
- Specified by:
- getServicein interface- Exchange
 
- 
 
getBinding
public Binding getBinding()
- 
- Specified by:
- getBindingin interface- Exchange
 
- 
 
getBindingOperationInfo
public BindingOperationInfo getBindingOperationInfo()
- 
- Specified by:
- getBindingOperationInfoin interface- Exchange
 
- 
 
Apache CXF