toolbox.services.ws
Class ThreadLocalExchange

Package class diagram package ThreadLocalExchange
java.lang.Object
  extended by toolbox.services.ws.ThreadLocalExchange

public class ThreadLocalExchange
extends java.lang.Object

A ThreadLocal implementation to facilitate propagation of the CXF Exchange instance to stateful or singleton service implementations.


Method Summary
static org.apache.cxf.message.Exchange getExchange()
          Return the current Exchange instance.
static void removeExchange()
          Remove the current Exchange instance.
static void setExchange(org.apache.cxf.message.Exchange context)
          Set the current Exchange instance.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

setExchange

public static void setExchange(org.apache.cxf.message.Exchange context)
Set the current Exchange instance.

Parameters:
context - The exchange instance.

getExchange

public static org.apache.cxf.message.Exchange getExchange()
Return the current Exchange instance.

Returns:
Exchange instance.

removeExchange

public static void removeExchange()
Remove the current Exchange instance.