Response<T> Interface
Type Parameters
- T
The deserialized type of the response content, available from #getValue().
public interface Response
REST response with a strongly-typed content specified.
Method Summary
Modifier and Type | Method and Description |
---|---|
abstract
Http |
getHeaders()
Gets the headers from the HTTP response. |
abstract
Http |
getRequest()
Gets the HTTP request which resulted in this response. |
abstract int |
getStatusCode()
Gets the HTTP response status code. |
abstract T |
getValue()
Gets the deserialized value of the HTTP response. |
Method Details
getHeaders
public abstract HttpHeaders getHeaders()
Gets the headers from the HTTP response.
Returns:
getRequest
public abstract HttpRequest getRequest()
Gets the HTTP request which resulted in this response.
Returns:
getStatusCode
public abstract int getStatusCode()
Gets the HTTP response status code.
Returns:
getValue
public abstract T getValue()
Gets the deserialized value of the HTTP response.
Returns:
Applies to
Azure SDK for Java
Commentaires
https://aka.ms/ContentUserFeedback.
Bientôt disponible : Tout au long de 2024, nous allons supprimer progressivement GitHub Issues comme mécanisme de commentaires pour le contenu et le remplacer par un nouveau système de commentaires. Pour plus d’informations, consultezEnvoyer et afficher des commentaires pour