Uses of Class
org.springframework.core.ParameterizedTypeReference
Package
Description
Provides basic classes for exception handling and version detection,
and other core helpers that are not specific to any part of the framework.
Contains an abstraction over client-side HTTP.
Support for the RSocket protocol.
Annotations to declare an RSocket service contract with request methods along
with a proxy factory backed by an
RSocketRequester
.Mock objects for the functional web framework.
Support for testing Spring WebFlux server endpoints via
WebTestClient
.Core package of the client-side web support.
Provides a foundation for both the reactive client and server subpackages.
Provides a reactive
WebClient
that builds on top of the
org.springframework.http.client.reactive
reactive HTTP adapter layer.Classes supporting the
org.springframework.web.reactive.function.client
package.Provides the types that make up Spring's functional web framework for Reactive environments.
Classes supporting the
org.springframework.web.reactive.function.server
package.Support for creating a client proxy for an HTTP service annotated with
HttpExchange
methods.Provides the types that make up Spring's functional web framework for Servlet environments.
-
Uses of ParameterizedTypeReference in org.springframework.core
Modifier and TypeMethodDescriptionstatic <T> ParameterizedTypeReference<T>
Build aParameterizedTypeReference
wrapping the given type.Modifier and TypeMethodDescriptionstatic ResolvableType
ResolvableType.forType
(ParameterizedTypeReference<?> typeReference) Return aResolvableType
for the specifiedParameterizedTypeReference
. -
Uses of ParameterizedTypeReference in org.springframework.http.client
Modifier and TypeMethodDescription<T,
P extends Publisher<T>>
MultipartBodyBuilder.PartBuilderMultipartBodyBuilder.asyncPart
(String name, P publisher, ParameterizedTypeReference<T> typeReference) Variant ofMultipartBodyBuilder.asyncPart(String, Publisher, Class)
with aParameterizedTypeReference
for the element type information. -
Uses of ParameterizedTypeReference in org.springframework.messaging.rsocket
Modifier and TypeMethodDescriptionRSocketRequester.RequestSpec.data
(Object producer, ParameterizedTypeReference<?> elementTypeRef) Variant ofRSocketRequester.RequestSpec.data(Object, Class)
for when the type hint has to have a generic type.<T> void
DefaultMetadataExtractor.metadataToExtract
(MimeType mimeType, ParameterizedTypeReference<T> type, BiConsumer<T, Map<String, Object>> mapper) default void
MetadataExtractorRegistry.metadataToExtract
(MimeType mimeType, ParameterizedTypeReference<?> targetType, String name) Variant ofMetadataExtractorRegistry.metadataToExtract(MimeType, Class, String)
that acceptsParameterizedTypeReference
instead ofClass
for specifying a target type with generic parameters.<T> void
MetadataExtractorRegistry.metadataToExtract
(MimeType mimeType, ParameterizedTypeReference<T> type, BiConsumer<T, Map<String, Object>> mapper) Variant ofMetadataExtractorRegistry.metadataToExtract(MimeType, Class, BiConsumer)
that acceptsParameterizedTypeReference
instead ofClass
for specifying a target type with generic parameters.<T> reactor.core.publisher.Flux<T>
RSocketRequester.RetrieveSpec.retrieveFlux
(ParameterizedTypeReference<T> dataTypeRef) Variant ofRSocketRequester.RetrieveSpec.retrieveFlux(Class)
for when the dataType has to have a generic type.<T> reactor.core.publisher.Mono<T>
RSocketRequester.RetrieveSpec.retrieveMono
(ParameterizedTypeReference<T> dataTypeRef) Variant ofRSocketRequester.RetrieveSpec.retrieveMono(Class)
for when the dataType has to have a generic type. -
Uses of ParameterizedTypeReference in org.springframework.messaging.rsocket.service
Modifier and TypeMethodDescriptionRSocketRequestValues.getPayloadElementType()
Return the element type for a Publisher payload.Modifier and TypeMethodDescription<T,
P extends Publisher<T>>
RSocketRequestValues.BuilderRSocketRequestValues.Builder.setPayload
(P payload, ParameterizedTypeReference<T> elementTye) Set the request payload value to be serialized.ModifierConstructorDescriptionRSocketRequestValues
(String route, List<Object> routeVariables, org.springframework.messaging.rsocket.service.RSocketRequestValues.MetadataHelper metadataHelper, Object payloadValue, Publisher<?> payload, ParameterizedTypeReference<?> payloadElementType) -
Uses of ParameterizedTypeReference in org.springframework.mock.web.reactive.function.server
Modifier and TypeMethodDescription<S> reactor.core.publisher.Flux<S>
MockServerRequest.bodyToFlux
(ParameterizedTypeReference<S> typeReference) <S> reactor.core.publisher.Mono<S>
MockServerRequest.bodyToMono
(ParameterizedTypeReference<S> typeReference) -
Uses of ParameterizedTypeReference in org.springframework.test.web.reactive.server
Modifier and TypeMethodDescriptionWebTestClient.RequestBodySpec.body
(Object producer, ParameterizedTypeReference<?> elementTypeRef) Set the body from the given producer.<T,
S extends Publisher<T>>
WebTestClient.RequestHeadersSpec<?>WebTestClient.RequestBodySpec.body
(S publisher, ParameterizedTypeReference<T> elementTypeRef) Variant ofWebTestClient.RequestBodySpec.body(Publisher, Class)
that allows providing element type information with generics.<B> WebTestClient.BodySpec<B,
?> WebTestClient.ResponseSpec.expectBody
(ParameterizedTypeReference<B> bodyType) Alternative toWebTestClient.ResponseSpec.expectBody(Class)
that accepts information about a target type with generics.<E> WebTestClient.ListBodySpec<E>
WebTestClient.ResponseSpec.expectBodyList
(ParameterizedTypeReference<E> elementType) Alternative toWebTestClient.ResponseSpec.expectBodyList(Class)
that accepts information about a target type with generics.<T> FluxExchangeResult<T>
WebTestClient.ResponseSpec.returnResult
(ParameterizedTypeReference<T> elementTypeRef) Alternative toWebTestClient.ResponseSpec.returnResult(Class)
that accepts information about a target type with generics. -
Uses of ParameterizedTypeReference in org.springframework.web.client
Modifier and TypeMethodDescription<T> ResponseEntity<T>
RestOperations.exchange
(String url, HttpMethod method, HttpEntity<?> requestEntity, ParameterizedTypeReference<T> responseType, Object... uriVariables) Execute the HTTP method to the given URI template, writing the given request entity to the request, and returns the response asResponseEntity
.<T> ResponseEntity<T>
RestOperations.exchange
(String url, HttpMethod method, HttpEntity<?> requestEntity, ParameterizedTypeReference<T> responseType, Map<String, ?> uriVariables) Execute the HTTP method to the given URI template, writing the given request entity to the request, and returns the response asResponseEntity
.<T> ResponseEntity<T>
RestOperations.exchange
(URI url, HttpMethod method, HttpEntity<?> requestEntity, ParameterizedTypeReference<T> responseType) Execute the HTTP method to the given URI template, writing the given request entity to the request, and returns the response asResponseEntity
.<T> ResponseEntity<T>
RestOperations.exchange
(RequestEntity<?> requestEntity, ParameterizedTypeReference<T> responseType) Execute the request specified in the givenRequestEntity
and return the response asResponseEntity
.<T> ResponseEntity<T>
RestTemplate.exchange
(String url, HttpMethod method, HttpEntity<?> requestEntity, ParameterizedTypeReference<T> responseType, Object... uriVariables) <T> ResponseEntity<T>
RestTemplate.exchange
(String url, HttpMethod method, HttpEntity<?> requestEntity, ParameterizedTypeReference<T> responseType, Map<String, ?> uriVariables) <T> ResponseEntity<T>
RestTemplate.exchange
(URI url, HttpMethod method, HttpEntity<?> requestEntity, ParameterizedTypeReference<T> responseType) <T> ResponseEntity<T>
RestTemplate.exchange
(RequestEntity<?> entity, ParameterizedTypeReference<T> responseType) <E> E
RestClientResponseException.getResponseBodyAs
(ParameterizedTypeReference<E> targetType) -
Uses of ParameterizedTypeReference in org.springframework.web.reactive.function
Modifier and TypeMethodDescriptionstatic <T,
P extends Publisher<T>>
BodyInserters.MultipartInserterBodyInserters.fromMultipartAsyncData
(String name, P publisher, ParameterizedTypeReference<T> typeReference) Variant ofBodyInserters.fromMultipartAsyncData(String, Publisher, Class)
that accepts aParameterizedTypeReference
for the element type, which allows specifying generic type information.static <T> BodyInserter<T,
ReactiveHttpOutputMessage> BodyInserters.fromProducer
(T producer, ParameterizedTypeReference<?> elementTypeRef) Inserter to write the given producer of value(s) which must be aPublisher
or another producer adaptable to aPublisher
viaReactiveAdapterRegistry
.static <T,
P extends Publisher<T>>
BodyInserter<P,ReactiveHttpOutputMessage> BodyInserters.fromPublisher
(P publisher, ParameterizedTypeReference<T> elementTypeRef) Inserter to write the givenPublisher
.static <T> BodyExtractor<reactor.core.publisher.Flux<T>,
ReactiveHttpInputMessage> BodyExtractors.toFlux
(ParameterizedTypeReference<T> typeRef) Variant ofBodyExtractors.toFlux(Class)
for type information with generics.static <T> BodyExtractor<reactor.core.publisher.Mono<T>,
ReactiveHttpInputMessage> BodyExtractors.toMono
(ParameterizedTypeReference<T> elementTypeRef) Variant ofBodyExtractors.toMono(Class)
for type information with generics.<T,
P extends Publisher<T>>
BodyInserters.MultipartInserterBodyInserters.MultipartInserter.withPublisher
(String name, P publisher, ParameterizedTypeReference<T> typeReference) Variant ofBodyInserters.MultipartInserter.withPublisher(String, Publisher, Class)
that accepts aParameterizedTypeReference
for the element type, which allows specifying generic type information. -
Uses of ParameterizedTypeReference in org.springframework.web.reactive.function.client
Modifier and TypeMethodDescription<S,
P extends Publisher<S>>
ClientRequest.BuilderClientRequest.Builder.body
(P publisher, ParameterizedTypeReference<S> typeReference) Set the body of the request to the givenPublisher
and return it.WebClient.RequestBodySpec.body
(Object producer, ParameterizedTypeReference<?> elementTypeRef) Variant ofWebClient.RequestBodySpec.body(Publisher, ParameterizedTypeReference)
that allows using any producer that can be resolved toPublisher
viaReactiveAdapterRegistry
.<T,
P extends Publisher<T>>
WebClient.RequestHeadersSpec<?>WebClient.RequestBodySpec.body
(P publisher, ParameterizedTypeReference<T> elementTypeRef) Variant ofWebClient.RequestBodySpec.body(Publisher, Class)
that allows providing element type information with generics.<T> reactor.core.publisher.Flux<T>
ClientResponse.bodyToFlux
(ParameterizedTypeReference<T> elementTypeRef) Extract the body to aFlux
.<T> reactor.core.publisher.Flux<T>
WebClient.ResponseSpec.bodyToFlux
(ParameterizedTypeReference<T> elementTypeRef) Variant ofWebClient.ResponseSpec.bodyToMono(Class)
with aParameterizedTypeReference
.<T> reactor.core.publisher.Mono<T>
ClientResponse.bodyToMono
(ParameterizedTypeReference<T> elementTypeRef) Extract the body to aMono
.<T> reactor.core.publisher.Mono<T>
WebClient.ResponseSpec.bodyToMono
(ParameterizedTypeReference<T> elementTypeRef) Variant ofWebClient.ResponseSpec.bodyToMono(Class)
with aParameterizedTypeReference
.<E> E
WebClientResponseException.getResponseBodyAs
(ParameterizedTypeReference<E> targetType) <T> reactor.core.publisher.Mono<ResponseEntity<T>>
ClientResponse.toEntity
(ParameterizedTypeReference<T> bodyTypeReference) Return this response as a delayedResponseEntity
.<T> reactor.core.publisher.Mono<ResponseEntity<T>>
WebClient.ResponseSpec.toEntity
(ParameterizedTypeReference<T> bodyTypeReference) Variant ofWebClient.ResponseSpec.bodyToMono(Class)
with aParameterizedTypeReference
.<T> reactor.core.publisher.Mono<ResponseEntity<reactor.core.publisher.Flux<T>>>
WebClient.ResponseSpec.toEntityFlux
(ParameterizedTypeReference<T> elementTypeReference) Variant ofWebClient.ResponseSpec.toEntityFlux(Class)
with aParameterizedTypeReference
.<T> reactor.core.publisher.Mono<ResponseEntity<List<T>>>
ClientResponse.toEntityList
(ParameterizedTypeReference<T> elementTypeRef) Return this response as a delayed list ofResponseEntity
s.<T> reactor.core.publisher.Mono<ResponseEntity<List<T>>>
WebClient.ResponseSpec.toEntityList
(ParameterizedTypeReference<T> elementTypeRef) Variant ofWebClient.ResponseSpec.toEntity(Class)
with aParameterizedTypeReference
. -
Uses of ParameterizedTypeReference in org.springframework.web.reactive.function.client.support
Modifier and TypeMethodDescription<T> reactor.core.publisher.Flux<T>
ClientResponseWrapper.bodyToFlux
(ParameterizedTypeReference<T> elementTypeRef) <T> reactor.core.publisher.Mono<T>
ClientResponseWrapper.bodyToMono
(ParameterizedTypeReference<T> elementTypeRef) <T> reactor.core.publisher.Mono<T>
WebClientAdapter.requestToBody
(HttpRequestValues requestValues, ParameterizedTypeReference<T> bodyType) <T> reactor.core.publisher.Flux<T>
WebClientAdapter.requestToBodyFlux
(HttpRequestValues requestValues, ParameterizedTypeReference<T> bodyType) <T> reactor.core.publisher.Mono<ResponseEntity<T>>
WebClientAdapter.requestToEntity
(HttpRequestValues requestValues, ParameterizedTypeReference<T> bodyType) <T> reactor.core.publisher.Mono<ResponseEntity<reactor.core.publisher.Flux<T>>>
WebClientAdapter.requestToEntityFlux
(HttpRequestValues requestValues, ParameterizedTypeReference<T> bodyType) <T> reactor.core.publisher.Mono<ResponseEntity<T>>
ClientResponseWrapper.toEntity
(ParameterizedTypeReference<T> bodyTypeReference) <T> reactor.core.publisher.Mono<ResponseEntity<List<T>>>
ClientResponseWrapper.toEntityList
(ParameterizedTypeReference<T> elementTypeRef) -
Uses of ParameterizedTypeReference in org.springframework.web.reactive.function.server
Modifier and TypeMethodDescriptionreactor.core.publisher.Mono<ServerResponse>
ServerResponse.BodyBuilder.body
(Object producer, ParameterizedTypeReference<?> elementTypeRef) Variant ofServerResponse.BodyBuilder.body(Publisher, ParameterizedTypeReference)
that allows using any producer that can be resolved toPublisher
viaReactiveAdapterRegistry
.<T,
P extends Publisher<T>>
reactor.core.publisher.Mono<ServerResponse>ServerResponse.BodyBuilder.body
(P publisher, ParameterizedTypeReference<T> elementTypeRef) Variant ofServerResponse.BodyBuilder.body(Publisher, Class)
that allows using any producer that can be resolved toPublisher
viaReactiveAdapterRegistry
.<T> reactor.core.publisher.Flux<T>
ServerRequest.bodyToFlux
(ParameterizedTypeReference<T> typeReference) Extract the body to aFlux
.<T> reactor.core.publisher.Mono<T>
ServerRequest.bodyToMono
(ParameterizedTypeReference<T> typeReference) Extract the body to aMono
.static <T> EntityResponse.Builder<T>
EntityResponse.fromProducer
(T producer, ParameterizedTypeReference<?> typeReference) Create a builder with the given producer.static <T,
P extends Publisher<T>>
EntityResponse.Builder<P>EntityResponse.fromPublisher
(P publisher, ParameterizedTypeReference<T> typeReference) Create a builder with the given publisher. -
Uses of ParameterizedTypeReference in org.springframework.web.reactive.function.server.support
Modifier and TypeMethodDescription<T> reactor.core.publisher.Flux<T>
ServerRequestWrapper.bodyToFlux
(ParameterizedTypeReference<T> typeReference) <T> reactor.core.publisher.Mono<T>
ServerRequestWrapper.bodyToMono
(ParameterizedTypeReference<T> typeReference) -
Uses of ParameterizedTypeReference in org.springframework.web.service.invoker
Modifier and TypeMethodDescriptionHttpRequestValues.getBodyElementType()
Return the element type for a Publisher body.Modifier and TypeMethodDescription<T> reactor.core.publisher.Mono<T>
HttpClientAdapter.requestToBody
(HttpRequestValues requestValues, ParameterizedTypeReference<T> bodyType) Perform the given request and decode the response content to the given type.<T> reactor.core.publisher.Flux<T>
HttpClientAdapter.requestToBodyFlux
(HttpRequestValues requestValues, ParameterizedTypeReference<T> bodyType) Perform the given request and decode the response content to a stream with elements of the given type.<T> reactor.core.publisher.Mono<ResponseEntity<T>>
HttpClientAdapter.requestToEntity
(HttpRequestValues requestValues, ParameterizedTypeReference<T> bodyType) Variant ofHttpClientAdapter.requestToBody(HttpRequestValues, ParameterizedTypeReference)
with additional access to the response status and headers.<T> reactor.core.publisher.Mono<ResponseEntity<reactor.core.publisher.Flux<T>>>
HttpClientAdapter.requestToEntityFlux
(HttpRequestValues requestValues, ParameterizedTypeReference<T> bodyType) Variant ofHttpClientAdapter.requestToBodyFlux(HttpRequestValues, ParameterizedTypeReference)
with additional access to the response status and headers.<T,
P extends Publisher<T>>
voidHttpRequestValues.Builder.setBody
(P body, ParameterizedTypeReference<T> elementTye) Set the request body as a concrete value to be serialized. -
Uses of ParameterizedTypeReference in org.springframework.web.servlet.function
Modifier and TypeMethodDescription<T> T
ServerRequest.body
(ParameterizedTypeReference<T> bodyType) Extract the body as an object of the given type.<T> ServerResponse
ServerResponse.BodyBuilder.body
(T body, ParameterizedTypeReference<T> bodyType) Set the body of the response to the givenObject
and return it.static <T> EntityResponse.Builder<T>
EntityResponse.fromObject
(T t, ParameterizedTypeReference<T> entityType) Create a builder with the given object and type reference.