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
- Author:
- Arjen Poutsma
- See Also:
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic TransportContext
Return theTransportContext
associated with the current thread, if any.static void
setTransportContext
(TransportContext transportContext) Associate the givenTransportContext
with the current thread.
-
Constructor Details
-
TransportContextHolder
public TransportContextHolder()
-
-
Method Details
-
setTransportContext
Associate the givenTransportContext
with the current thread.- Parameters:
transportContext
- the current transport context, ornull
to reset the thread-bound context
-
getTransportContext
Return theTransportContext
associated with the current thread, if any.- Returns:
- the current transport context, or
null
if none
-