Spring Web Services Framework

org.springframework.ws.transport.context
Class TransportContextHolder

java.lang.Object
  extended by 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:
TransportContext

Constructor Summary
TransportContextHolder()
           
 
Method Summary
static TransportContext getTransportContext()
          Return the TransportContext associated with the current thread, if any.
static void setTransportContext(TransportContext transportContext)
          Associate the given TransportContext with the current thread.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TransportContextHolder

public TransportContextHolder()
Method Detail

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

Spring Web Services Framework

Copyright © 2005-2013 The Spring Web Services Framework. All Rights Reserved.