public class HttpResponseWrapper
extends com.azure.core.http.HttpResponse
implements com.microsoft.aad.msal4j.IHttpResponse
HttpClientWrapper class, which is responsible for wrapping the http client, this client wraps the response from the
client.| Modifier | Constructor and Description |
|---|---|
protected |
HttpResponseWrapper(com.azure.core.http.HttpRequest request,
org.apache.http.HttpResponse response) |
protected |
HttpResponseWrapper(org.apache.http.HttpResponse response) |
| Modifier and Type | Method and Description |
|---|---|
String |
body() |
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.HttpHeaders |
getHeaders() |
String |
getHeaderValue(String s) |
int |
getStatusCode() |
Map<String,List<String>> |
headers() |
int |
statusCode() |
protected HttpResponseWrapper(com.azure.core.http.HttpRequest request,
org.apache.http.HttpResponse response)
protected HttpResponseWrapper(org.apache.http.HttpResponse response)
public int getStatusCode()
getStatusCode in class com.azure.core.http.HttpResponsepublic String getHeaderValue(String s)
getHeaderValue in class com.azure.core.http.HttpResponsepublic com.azure.core.http.HttpHeaders getHeaders()
getHeaders in class com.azure.core.http.HttpResponsepublic reactor.core.publisher.Flux<ByteBuffer> getBody()
getBody in class com.azure.core.http.HttpResponsepublic reactor.core.publisher.Mono<byte[]> getBodyAsByteArray()
getBodyAsByteArray in class com.azure.core.http.HttpResponsepublic reactor.core.publisher.Mono<String> getBodyAsString()
getBodyAsString in class com.azure.core.http.HttpResponsepublic reactor.core.publisher.Mono<String> getBodyAsString(Charset charset)
getBodyAsString in class com.azure.core.http.HttpResponsepublic int statusCode()
statusCode in interface com.microsoft.aad.msal4j.IHttpResponsepublic Map<String,List<String>> headers()
headers in interface com.microsoft.aad.msal4j.IHttpResponsepublic String body()
body in interface com.microsoft.aad.msal4j.IHttpResponseCopyright © 2023. All rights reserved.