Class TransportContextHolder

java.lang.Object
org.springframework.ws.transport.context.TransportContextHolder

public abstract class TransportContextHolder extends Object
Simple holder class that associates a TransportContext instance with the current thread. The TransportContext will be inherited by any child threads spawned by the current thread.
Since:
1.0.0
Author:
Arjen Poutsma
See Also:
  • Constructor Details

    • TransportContextHolder

      public TransportContextHolder()
  • Method Details

    • setTransportContext

      public static void setTransportContext(TransportContext transportContext)
      Associate the given TransportContext with the current thread.
      Parameters:
      transportContext - the current transport context, or null to reset the thread-bound context
    • getTransportContext

      public static TransportContext getTransportContext()
      Return the TransportContext associated with the current thread, if any.
      Returns:
      the current transport context, or null if none