public class RequestContextHolder extends java.lang.Object
RequestContextinstance with the current thread. The RequestContext will not be inherited by any child threads spawned by the current thread.
Used as a central holder for the current RequestContext in Spring Web Flow, wherever necessary. Often used by integration artifacts needing access to the current flow execution.
|Modifier and Type||Method and Description|
Return the RequestContext associated with the current thread, if any.
Associate the given RequestContext with the current thread.
public static void setRequestContext(RequestContext requestContext)
requestContext- the current RequestContext, or
nullto reset the thread-bound context
public static RequestContext getRequestContext()
java.lang.IllegalStateException- if no RequestContext is bound to this thread