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