public class DefaultClientResponse extends Object implements org.springframework.web.reactive.function.client.ClientResponse
ClientResponse.| Constructor and Description |
|---|
DefaultClientResponse(org.springframework.http.client.reactive.ClientHttpResponse response,
org.springframework.web.reactive.function.client.ExchangeStrategies strategies) |
| Modifier and Type | Method and Description |
|---|---|
<T> T |
body(org.springframework.web.reactive.function.BodyExtractor<T,? super org.springframework.http.client.reactive.ClientHttpResponse> extractor) |
<T> reactor.core.publisher.Flux<T> |
bodyToFlux(Class<? extends T> elementClass) |
<T> reactor.core.publisher.Flux<T> |
bodyToFlux(org.springframework.core.ParameterizedTypeReference<T> typeReference) |
<T> reactor.core.publisher.Mono<T> |
bodyToMono(Class<? extends T> elementClass) |
<T> reactor.core.publisher.Mono<T> |
bodyToMono(org.springframework.core.ParameterizedTypeReference<T> typeReference) |
org.springframework.util.MultiValueMap<String,org.springframework.http.ResponseCookie> |
cookies() |
org.springframework.web.reactive.function.client.ClientResponse.Headers |
headers() |
int |
rawStatusCode() |
org.springframework.http.HttpStatus |
statusCode() |
org.springframework.web.reactive.function.client.ExchangeStrategies |
strategies() |
<T> reactor.core.publisher.Mono<org.springframework.http.ResponseEntity<T>> |
toEntity(Class<T> bodyType) |
<T> reactor.core.publisher.Mono<org.springframework.http.ResponseEntity<T>> |
toEntity(org.springframework.core.ParameterizedTypeReference<T> typeReference) |
<T> reactor.core.publisher.Mono<org.springframework.http.ResponseEntity<List<T>>> |
toEntityList(Class<T> responseType) |
<T> reactor.core.publisher.Mono<org.springframework.http.ResponseEntity<List<T>>> |
toEntityList(org.springframework.core.ParameterizedTypeReference<T> typeReference) |
public DefaultClientResponse(org.springframework.http.client.reactive.ClientHttpResponse response,
org.springframework.web.reactive.function.client.ExchangeStrategies strategies)
public org.springframework.web.reactive.function.client.ExchangeStrategies strategies()
strategies in interface org.springframework.web.reactive.function.client.ClientResponsepublic org.springframework.http.HttpStatus statusCode()
statusCode in interface org.springframework.web.reactive.function.client.ClientResponsepublic int rawStatusCode()
rawStatusCode in interface org.springframework.web.reactive.function.client.ClientResponsepublic org.springframework.web.reactive.function.client.ClientResponse.Headers headers()
headers in interface org.springframework.web.reactive.function.client.ClientResponsepublic org.springframework.util.MultiValueMap<String,org.springframework.http.ResponseCookie> cookies()
cookies in interface org.springframework.web.reactive.function.client.ClientResponsepublic <T> T body(org.springframework.web.reactive.function.BodyExtractor<T,? super org.springframework.http.client.reactive.ClientHttpResponse> extractor)
body in interface org.springframework.web.reactive.function.client.ClientResponsepublic <T> reactor.core.publisher.Mono<T> bodyToMono(Class<? extends T> elementClass)
bodyToMono in interface org.springframework.web.reactive.function.client.ClientResponsepublic <T> reactor.core.publisher.Mono<T> bodyToMono(org.springframework.core.ParameterizedTypeReference<T> typeReference)
bodyToMono in interface org.springframework.web.reactive.function.client.ClientResponsepublic <T> reactor.core.publisher.Flux<T> bodyToFlux(Class<? extends T> elementClass)
bodyToFlux in interface org.springframework.web.reactive.function.client.ClientResponsepublic <T> reactor.core.publisher.Flux<T> bodyToFlux(org.springframework.core.ParameterizedTypeReference<T> typeReference)
bodyToFlux in interface org.springframework.web.reactive.function.client.ClientResponsepublic <T> reactor.core.publisher.Mono<org.springframework.http.ResponseEntity<T>> toEntity(Class<T> bodyType)
toEntity in interface org.springframework.web.reactive.function.client.ClientResponsepublic <T> reactor.core.publisher.Mono<org.springframework.http.ResponseEntity<T>> toEntity(org.springframework.core.ParameterizedTypeReference<T> typeReference)
toEntity in interface org.springframework.web.reactive.function.client.ClientResponsepublic <T> reactor.core.publisher.Mono<org.springframework.http.ResponseEntity<List<T>>> toEntityList(Class<T> responseType)
toEntityList in interface org.springframework.web.reactive.function.client.ClientResponsepublic <T> reactor.core.publisher.Mono<org.springframework.http.ResponseEntity<List<T>>> toEntityList(org.springframework.core.ParameterizedTypeReference<T> typeReference)
toEntityList in interface org.springframework.web.reactive.function.client.ClientResponseCopyright © 2019 Pivotal Software, Inc.. All rights reserved.