Class HttpResponseWrapper
- java.lang.Object
-
- com.azure.core.http.HttpResponse
-
- com.microsoft.azure.kusto.data.auth.HttpResponseWrapper
-
- All Implemented Interfaces:
com.microsoft.aad.msal4j.IHttpResponse,Closeable,AutoCloseable
public class HttpResponseWrapper extends com.azure.core.http.HttpResponse implements com.microsoft.aad.msal4j.IHttpResponseThis class wraps our azure HttpResponse, into both the asynchronous HttpResponse class and the synchronous IHttpResponse interface from the azure core library. This class completes theHttpClientWrapperclass, which is responsible for wrapping the http client, this client wraps the response from the client.
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedHttpResponseWrapper(com.azure.core.http.HttpRequest request, org.apache.http.HttpResponse response)protectedHttpResponseWrapper(org.apache.http.HttpResponse response)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Stringbody()reactor.core.publisher.Flux<ByteBuffer>getBody()reactor.core.publisher.Mono<byte[]>getBodyAsByteArray()reactor.core.publisher.Mono<String>getBodyAsString()reactor.core.publisher.Mono<String>getBodyAsString(Charset charset)com.azure.core.http.HttpHeadersgetHeaders()StringgetHeaderValue(String s)intgetStatusCode()Map<String,List<String>>headers()intstatusCode()
-
-
-
Method Detail
-
getStatusCode
public int getStatusCode()
- Specified by:
getStatusCodein classcom.azure.core.http.HttpResponse
-
getHeaderValue
public String getHeaderValue(String s)
- Specified by:
getHeaderValuein classcom.azure.core.http.HttpResponse
-
getHeaders
public com.azure.core.http.HttpHeaders getHeaders()
- Specified by:
getHeadersin classcom.azure.core.http.HttpResponse
-
getBody
public reactor.core.publisher.Flux<ByteBuffer> getBody()
- Specified by:
getBodyin classcom.azure.core.http.HttpResponse
-
getBodyAsByteArray
public reactor.core.publisher.Mono<byte[]> getBodyAsByteArray()
- Specified by:
getBodyAsByteArrayin classcom.azure.core.http.HttpResponse
-
getBodyAsString
public reactor.core.publisher.Mono<String> getBodyAsString()
- Specified by:
getBodyAsStringin classcom.azure.core.http.HttpResponse
-
getBodyAsString
public reactor.core.publisher.Mono<String> getBodyAsString(Charset charset)
- Specified by:
getBodyAsStringin classcom.azure.core.http.HttpResponse
-
statusCode
public int statusCode()
- Specified by:
statusCodein interfacecom.microsoft.aad.msal4j.IHttpResponse
-
headers
public Map<String,List<String>> headers()
- Specified by:
headersin interfacecom.microsoft.aad.msal4j.IHttpResponse
-
body
public String body()
- Specified by:
bodyin interfacecom.microsoft.aad.msal4j.IHttpResponse
-
-