Top Description Methods
org.springframework.web.service.invoker

public Interface HttpClientAdapter

Known Direct Implementers
org.springframework.web.service.invoker.AbstractReactorHttpExchangeAdapter
Annotations
@Deprecated
since:6.1
forRemoval:true
Imports
reactor.core.publisher.Flux, .Mono, org.springframework.core.ParameterizedTypeReference, org.springframework.http.HttpHeaders, .ResponseEntity

Deprecated

for removal since 6.1.

in favor of ReactorHttpExchangeAdapter

Contract to abstract the underlying HTTP client and decouple it from the HTTP service proxy.
Authors
Rossen Stoyanchev, Olga Maciaszek-Sharma
Since
6.0

Method Summary

Modifier and TypeMethod and Description
public default ReactorHttpExchangeAdapter
public Mono<ResponseEntity<Void>>
requestToBodilessEntity(HttpRequestValues requestValues)

Variant of requestToVoid(HttpRequestValues) with additional access to the response status and headers.

public <
the type the response is decoded to
T
>
Mono<T>

Returns:

Mono that returns the decoded response.
requestToBody
(HttpRequestValues
the request to perform
requestValues
,
ParameterizedTypeReference<T>
the target type to decode to
bodyType
)

Perform the given request and decode the response content to the given type.

public <
the type the response is decoded to
T
>
Flux<T>

Returns:

Flux with decoded stream elements.
requestToBodyFlux
(HttpRequestValues
the request to perform
requestValues
,
ParameterizedTypeReference<T>
the target stream element type to decode to
bodyType
)

Perform the given request and decode the response content to a stream with elements of the given type.

public <T> Mono<ResponseEntity<T>>
requestToEntity(HttpRequestValues requestValues, ParameterizedTypeReference<T> bodyType)

Variant of requestToBody(HttpRequestValues, ParameterizedTypeReference) with additional access to the response status and headers.

public <T> Mono<ResponseEntity<Flux<T>>>
requestToEntityFlux(HttpRequestValues requestValues, ParameterizedTypeReference<T> bodyType)

Variant of requestToBodyFlux(HttpRequestValues, ParameterizedTypeReference) with additional access to the response status and headers.

public Mono<HttpHeaders>

Returns:

Mono that returns the response headers the request is fully executed and the response content released.
requestToHeaders
(HttpRequestValues
the request to perform
requestValues
)

Perform the given request, release the response content, and return the response headers.

public Mono<Void>

Returns:

Mono that completes when the request is fully executed and the response content is released.
requestToVoid
(HttpRequestValues
the request to perform
requestValues
)

Perform the given request, and release the response content, if any.

Method Detail

asReactorExchangeAdapterback to summary
public default ReactorHttpExchangeAdapter asReactorExchangeAdapter()

Adapt this instance to ReactorHttpExchangeAdapter.

Since
6.1
requestToBodilessEntityback to summary
public Mono<ResponseEntity<Void>> requestToBodilessEntity(HttpRequestValues requestValues)

Variant of requestToVoid(HttpRequestValues) with additional access to the response status and headers.

requestToBodyback to summary
public <T> Mono<T> requestToBody(HttpRequestValues requestValues, ParameterizedTypeReference<T> bodyType)

Perform the given request and decode the response content to the given type.

Parameters
<T>
the type the response is decoded to
requestValues:HttpRequestValues

the request to perform

bodyType:ParameterizedTypeReference<T>

the target type to decode to

Returns:Mono<T>

Mono that returns the decoded response.

requestToBodyFluxback to summary
public <T> Flux<T> requestToBodyFlux(HttpRequestValues requestValues, ParameterizedTypeReference<T> bodyType)

Perform the given request and decode the response content to a stream with elements of the given type.

Parameters
<T>
the type the response is decoded to
requestValues:HttpRequestValues

the request to perform

bodyType:ParameterizedTypeReference<T>

the target stream element type to decode to

Returns:Flux<T>

Flux with decoded stream elements.

requestToEntityback to summary
public <T> Mono<ResponseEntity<T>> requestToEntity(HttpRequestValues requestValues, ParameterizedTypeReference<T> bodyType)

Variant of requestToBody(HttpRequestValues, ParameterizedTypeReference) with additional access to the response status and headers.

requestToEntityFluxback to summary
public <T> Mono<ResponseEntity<Flux<T>>> requestToEntityFlux(HttpRequestValues requestValues, ParameterizedTypeReference<T> bodyType)

Variant of requestToBodyFlux(HttpRequestValues, ParameterizedTypeReference) with additional access to the response status and headers.

requestToHeadersback to summary
public Mono<HttpHeaders> requestToHeaders(HttpRequestValues requestValues)

Perform the given request, release the response content, and return the response headers.

Parameters
requestValues:HttpRequestValues

the request to perform

Returns:Mono<HttpHeaders>

Mono that returns the response headers the request is fully executed and the response content released.

requestToVoidback to summary
public Mono<Void> requestToVoid(HttpRequestValues requestValues)

Perform the given request, and release the response content, if any.

Parameters
requestValues:HttpRequestValues

the request to perform

Returns:Mono<Void>

Mono that completes when the request is fully executed and the response content is released.