Package com.azure.core.http.policy
Class HttpResponseLoggingContext
- java.lang.Object
-
- com.azure.core.http.policy.HttpResponseLoggingContext
-
public final class HttpResponseLoggingContext extends Object
Options class containing information available during HTTP response logging.
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Context
getContext()
Gets the contextual information about the HTTP response.HttpResponse
getHttpResponse()
Gets the HTTP response being received.Duration
getResponseDuration()
Gets the duration between the HTTP request being sent and the HTTP response being received.Integer
getTryCount()
Gets the try count for the HTTP request associated to the HTTP response.
-
-
-
Method Detail
-
getHttpResponse
public HttpResponse getHttpResponse()
Gets the HTTP response being received.- Returns:
- The HTTP response being received.
-
getResponseDuration
public Duration getResponseDuration()
Gets the duration between the HTTP request being sent and the HTTP response being received.- Returns:
- The duration between the HTTP request being sent and the HTTP response being received.
-
getContext
public Context getContext()
Gets the contextual information about the HTTP response.- Returns:
- The contextual information.
-
getTryCount
public Integer getTryCount()
Gets the try count for the HTTP request associated to the HTTP response.- Returns:
- The HTTP request try count.
-
-