Class TransportContextHolder
java.lang.Object
org.springframework.ws.transport.context.TransportContextHolder
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
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic TransportContextReturn theTransportContextassociated with the current thread, if any.static voidsetTransportContext(TransportContext transportContext) Associate the givenTransportContextwith the current thread.
-
Constructor Details
-
TransportContextHolder
public TransportContextHolder()
-
-
Method Details
-
setTransportContext
Associate the givenTransportContextwith the current thread.- Parameters:
transportContext- the current transport context, ornullto reset the thread-bound context
-
getTransportContext
Return theTransportContextassociated with the current thread, if any.- Returns:
- the current transport context, or
nullif none
-