Package com.azure.android.core.rest
Interface Response<T>
-
- Type Parameters:
T- The deserialized type of the response content, available fromgetValue().
- All Known Subinterfaces:
PagedResponse<T>
- All Known Implementing Classes:
PagedResponseBase,ResponseBase,SimpleResponse,StreamResponse
public interface Response<T>REST response with a strongly-typed content specified.- See Also:
ResponseBase
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description com.azure.android.core.http.HttpHeadersgetHeaders()Gets the headers from the HTTP response.com.azure.android.core.http.HttpRequestgetRequest()Gets the HTTP request which resulted in this response.intgetStatusCode()Gets the HTTP response status code.TgetValue()Gets the deserialized value of the HTTP response.
-
-
-
Method Detail
-
getStatusCode
int getStatusCode()
Gets the HTTP response status code.- Returns:
- The status code of the HTTP response.
-
getHeaders
com.azure.android.core.http.HttpHeaders getHeaders()
Gets the headers from the HTTP response.- Returns:
- The HTTP response headers.
-
getRequest
com.azure.android.core.http.HttpRequest getRequest()
Gets the HTTP request which resulted in this response.- Returns:
- The HTTP request.
-
getValue
T getValue()
Gets the deserialized value of the HTTP response.- Returns:
- The deserialized value of the HTTP response.
-
-