azure-docs-sdk-java/docs-ref-autogen/com.azure.core.http.rest.Re...

108 строки
7.4 KiB
YAML

### YamlMime:JavaType
uid: "com.azure.core.http.rest.ResponseBase"
fullName: "com.azure.core.http.rest.ResponseBase<H,T>"
name: "ResponseBase<H,T>"
nameWithType: "ResponseBase<H,T>"
summary: "The response of a REST request."
inheritances:
- "<xref href=\"java.lang.Object?displayProperty=fullName\" data-throw-if-not-resolved=\"False\" />"
inheritedClassMethods:
- classRef: "java.lang.<a href=\"https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html\">Object</a>"
methodsRef:
- "<a href=\"https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html#clone--\">clone</a>"
- "<a href=\"https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html#equals-java.lang.Object-\">equals</a>"
- "<a href=\"https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html#finalize--\">finalize</a>"
- "<a href=\"https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html#getClass--\">getClass</a>"
- "<a href=\"https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html#hashCode--\">hashCode</a>"
- "<a href=\"https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html#notify--\">notify</a>"
- "<a href=\"https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html#notifyAll--\">notifyAll</a>"
- "<a href=\"https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html#toString--\">toString</a>"
- "<a href=\"https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html#wait--\">wait</a>"
- "<a href=\"https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html#wait-long-\">wait</a>"
- "<a href=\"https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html#wait-long-int-\">wait</a>"
syntax: "public class **ResponseBase<H,T>**</br> implements <xref href=\"com.azure.core.http.rest.Response?alt=com.azure.core.http.rest.Response&text=Response\" data-throw-if-not-resolved=\"False\" />&lt;<xref href=\"T?alt=T&text=T\" data-throw-if-not-resolved=\"False\" />&gt;"
constructors:
- uid: "com.azure.core.http.rest.ResponseBase.ResponseBase(com.azure.core.http.HttpRequest,int,com.azure.core.http.HttpHeaders,T,H)"
fullName: "com.azure.core.http.rest.ResponseBase<H,T>.ResponseBase(HttpRequest request, int statusCode, HttpHeaders headers, T value, H deserializedHeaders)"
name: "ResponseBase(HttpRequest request, int statusCode, HttpHeaders headers, T value, H deserializedHeaders)"
nameWithType: "ResponseBase<H,T>.ResponseBase(HttpRequest request, int statusCode, HttpHeaders headers, T value, H deserializedHeaders)"
summary: "Creates a <xref uid=\"com.azure.core.http.rest.ResponseBase\" data-throw-if-not-resolved=\"false\" data-raw-source=\"ResponseBase\"></xref>."
parameters:
- description: "The HTTP request which resulted in this response."
name: "request"
type: "<xref href=\"com.azure.core.http.HttpRequest?alt=com.azure.core.http.HttpRequest&text=HttpRequest\" data-throw-if-not-resolved=\"False\" />"
- description: "The status code of the HTTP response."
name: "statusCode"
type: "<xref href=\"int?alt=int&text=int\" data-throw-if-not-resolved=\"False\" />"
- description: "The headers of the HTTP response."
name: "headers"
type: "<xref href=\"com.azure.core.http.HttpHeaders?alt=com.azure.core.http.HttpHeaders&text=HttpHeaders\" data-throw-if-not-resolved=\"False\" />"
- description: "The deserialized value of the HTTP response."
name: "value"
type: "<xref href=\"T?alt=T&text=T\" data-throw-if-not-resolved=\"False\" />"
- description: "The deserialized headers of the HTTP response."
name: "deserializedHeaders"
type: "<xref href=\"H?alt=H&text=H\" data-throw-if-not-resolved=\"False\" />"
syntax: "public ResponseBase(HttpRequest request, int statusCode, HttpHeaders headers, T value, H deserializedHeaders)"
desc: "Creates a <xref uid=\"com.azure.core.http.rest.ResponseBase\" data-throw-if-not-resolved=\"false\" data-raw-source=\"ResponseBase\"></xref>."
methods:
- uid: "com.azure.core.http.rest.ResponseBase.getDeserializedHeaders()"
fullName: "com.azure.core.http.rest.ResponseBase<H,T>.getDeserializedHeaders()"
name: "getDeserializedHeaders()"
nameWithType: "ResponseBase<H,T>.getDeserializedHeaders()"
summary: "Get the headers from the HTTP response, transformed into the header type, `H`."
syntax: "public H getDeserializedHeaders()"
desc: "Get the headers from the HTTP response, transformed into the header type, `H`."
returns:
description: "An instance of header type <code>H</code>, deserialized from the HTTP response headers."
type: "<xref href=\"H?alt=H&text=H\" data-throw-if-not-resolved=\"False\" />"
- uid: "com.azure.core.http.rest.ResponseBase.getHeaders()"
fullName: "com.azure.core.http.rest.ResponseBase<H,T>.getHeaders()"
name: "getHeaders()"
nameWithType: "ResponseBase<H,T>.getHeaders()"
summary: "Gets the headers from the HTTP response."
syntax: "public HttpHeaders getHeaders()"
desc: "Gets the headers from the HTTP response."
returns:
type: "<xref href=\"com.azure.core.http.HttpHeaders?alt=com.azure.core.http.HttpHeaders&text=HttpHeaders\" data-throw-if-not-resolved=\"False\" />"
- uid: "com.azure.core.http.rest.ResponseBase.getRequest()"
fullName: "com.azure.core.http.rest.ResponseBase<H,T>.getRequest()"
name: "getRequest()"
nameWithType: "ResponseBase<H,T>.getRequest()"
summary: "Gets The request which resulted in this <xref uid=\"com.azure.core.http.rest.ResponseBase\" data-throw-if-not-resolved=\"false\" data-raw-source=\"ResponseBase\"></xref>."
syntax: "public HttpRequest getRequest()"
desc: "Gets The request which resulted in this <xref uid=\"com.azure.core.http.rest.ResponseBase\" data-throw-if-not-resolved=\"false\" data-raw-source=\"ResponseBase\"></xref>."
returns:
description: "The request which resulted in this <xref uid=\"com.azure.core.http.rest.ResponseBase\" data-throw-if-not-resolved=\"false\" data-raw-source=\"ResponseBase\"></xref>."
type: "<xref href=\"com.azure.core.http.HttpRequest?alt=com.azure.core.http.HttpRequest&text=HttpRequest\" data-throw-if-not-resolved=\"False\" />"
- uid: "com.azure.core.http.rest.ResponseBase.getStatusCode()"
fullName: "com.azure.core.http.rest.ResponseBase<H,T>.getStatusCode()"
name: "getStatusCode()"
nameWithType: "ResponseBase<H,T>.getStatusCode()"
summary: "Gets the HTTP response status code."
syntax: "public int getStatusCode()"
desc: "Gets the HTTP response status code."
returns:
type: "<xref href=\"int?alt=int&text=int\" data-throw-if-not-resolved=\"False\" />"
- uid: "com.azure.core.http.rest.ResponseBase.getValue()"
fullName: "com.azure.core.http.rest.ResponseBase<H,T>.getValue()"
name: "getValue()"
nameWithType: "ResponseBase<H,T>.getValue()"
summary: "Gets the deserialized value of the HTTP response."
syntax: "public T getValue()"
desc: "Gets the deserialized value of the HTTP response."
returns:
type: "<xref href=\"T?alt=T&text=T\" data-throw-if-not-resolved=\"False\" />"
type: "class"
typeParameters:
- description: "The deserialized type of the response headers."
name: "H"
- description: "The deserialized type of the response value, available from <xref uid=\"Response#getValue()\" data-throw-if-not-resolved=\"false\" data-raw-source=\"Response#getValue()\"></xref>."
name: "T"
desc: "The response of a REST request."
implements:
- "<xref href=\"com.azure.core.http.rest.Response?alt=com.azure.core.http.rest.Response&text=Response\" data-throw-if-not-resolved=\"False\" />&lt;<xref href=\"T?alt=T&text=T\" data-throw-if-not-resolved=\"False\" />&gt;"
metadata: {}
package: "com.azure.core.http.rest"
artifact: com.azure:azure-core:1.52.0