Contexts Class
- java.
lang. Object - com.
azure. core. util. Contexts
- com.
public final class Contexts
A utility type that can be used to add and retrieve instances commonly used in Context.
Method Summary
| Modifier and Type | Method and Description |
|---|---|
| static Contexts | empty() |
| Context |
getContext()
Returns a version of the Context reflecting mutations. |
|
Progress |
getHttpRequestProgressReporter()
Retrieves request's ProgressReporter from the Context. |
| Contexts |
setHttpRequestProgressReporter(ProgressReporter progressReporter)
Adds request's ProgressReporter instance to the Context. |
| static Contexts | with(Context context) |
Methods inherited from java.lang.Object
Method Details
empty
getContext
getHttpRequestProgressReporter
public ProgressReporter getHttpRequestProgressReporter()
Retrieves request's ProgressReporter from the Context.
Returns:
setHttpRequestProgressReporter
public Contexts setHttpRequestProgressReporter(ProgressReporter progressReporter)
Adds request's ProgressReporter instance to the Context.
Parameters:
Returns: