Uses of Class
org.springframework.core.ParameterizedTypeReference
Packages that use ParameterizedTypeReference
Package
Description
The core package implementing Spring's lightweight Inversion of Control (IoC) container.
Classes supporting the
org.springframework.beans.factory package.Classes supporting the org.springframework.context package,
such as abstract base classes for ApplicationContext
implementations and a MessageSource implementation.
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 classes for JNDI usage,
including a JNDI-based BeanFactory implementation.
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.
General utility classes for use in unit and integration tests.
Support for testing Spring WebFlux server endpoints via
WebTestClient.Support for testing Spring MVC applications via
RestTestClient with
MockMvc for server request handling.Support classes for testing web applications.
Core package of the client-side web support.
Classes supporting the
org.springframework.web.client package.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.beans.factory
Methods in org.springframework.beans.factory with parameters of type ParameterizedTypeReferenceModifier and TypeMethodDescription<T> TBeanRegistry.SupplierContext.bean(ParameterizedTypeReference<T> beanType) Return the bean instance that uniquely matches the given generics-containing type, if any.<T> ObjectProvider<T> BeanRegistry.SupplierContext.beanProvider(ParameterizedTypeReference<T> beanType) Return a provider for the specified bean, allowing for lazy on-demand retrieval of instances, including availability and uniqueness options.<T> ObjectProvider<T> BeanFactory.getBeanProvider(ParameterizedTypeReference<T> requiredType) Return a provider for the specified bean, allowing for lazy on-demand retrieval of instances, including availability and uniqueness options.<T> voidBeanRegistry.registerBean(String name, ParameterizedTypeReference<T> beanType) Register a bean from the given generics-containing type, which will be instantiated using the relatedresolvable constructorif any.<T> voidBeanRegistry.registerBean(String name, ParameterizedTypeReference<T> beanType, Consumer<BeanRegistry.Spec<T>> customizer) Register a bean from the given generics-containing type, customizing it with the customizer callback.<T> StringBeanRegistry.registerBean(ParameterizedTypeReference<T> beanType) Register a bean from the given generics-containing type, which will be instantiated using the relatedresolvable constructorif any.<T> StringBeanRegistry.registerBean(ParameterizedTypeReference<T> beanType, Consumer<BeanRegistry.Spec<T>> customizer) Register a bean from the given generics-containing type, customizing it with the customizer callback. -
Uses of ParameterizedTypeReference in org.springframework.beans.factory.support
Methods in org.springframework.beans.factory.support with parameters of type ParameterizedTypeReferenceModifier and TypeMethodDescription<T> ObjectProvider<T> DefaultListableBeanFactory.getBeanProvider(ParameterizedTypeReference<T> requiredType) <T> ObjectProvider<T> StaticListableBeanFactory.getBeanProvider(ParameterizedTypeReference<T> requiredType) <T> voidBeanRegistryAdapter.registerBean(String name, ParameterizedTypeReference<T> beanType) <T> voidBeanRegistryAdapter.registerBean(String name, ParameterizedTypeReference<T> beanType, Consumer<BeanRegistry.Spec<T>> customizer) <T> StringBeanRegistryAdapter.registerBean(ParameterizedTypeReference<T> beanType) <T> StringBeanRegistryAdapter.registerBean(ParameterizedTypeReference<T> beanType, Consumer<BeanRegistry.Spec<T>> customizer) -
Uses of ParameterizedTypeReference in org.springframework.context.support
Methods in org.springframework.context.support with parameters of type ParameterizedTypeReferenceModifier and TypeMethodDescription<T> ObjectProvider<T> AbstractApplicationContext.getBeanProvider(ParameterizedTypeReference<T> requiredType) -
Uses of ParameterizedTypeReference in org.springframework.core
Methods in org.springframework.core that return ParameterizedTypeReferenceModifier and TypeMethodDescriptionstatic <T> ParameterizedTypeReference<T> Build aParameterizedTypeReferencewrapping the given type.Methods in org.springframework.core with parameters of type ParameterizedTypeReferenceModifier and TypeMethodDescriptionstatic ResolvableTypeResolvableType.forType(ParameterizedTypeReference<?> typeReference) Return aResolvableTypefor the specifiedParameterizedTypeReference. -
Uses of ParameterizedTypeReference in org.springframework.http.client
Methods in org.springframework.http.client with parameters of type ParameterizedTypeReferenceModifier and TypeMethodDescription<T, P extends Publisher<T>>
MultipartBodyBuilder.PartBuilderMultipartBodyBuilder.asyncPart(String name, P publisher, ParameterizedTypeReference<T> typeReference) Variant ofMultipartBodyBuilder.asyncPart(String, Publisher, Class)with aParameterizedTypeReferencefor the element type information. -
Uses of ParameterizedTypeReference in org.springframework.jndi.support
Methods in org.springframework.jndi.support with parameters of type ParameterizedTypeReferenceModifier and TypeMethodDescription<T> ObjectProvider<T> SimpleJndiBeanFactory.getBeanProvider(ParameterizedTypeReference<T> requiredType) -
Uses of ParameterizedTypeReference in org.springframework.messaging.rsocket
Methods in org.springframework.messaging.rsocket with parameters of type ParameterizedTypeReferenceModifier 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> voidDefaultMetadataExtractor.metadataToExtract(MimeType mimeType, ParameterizedTypeReference<T> type, BiConsumer<T, Map<String, Object>> mapper) default voidMetadataExtractorRegistry.metadataToExtract(MimeType mimeType, ParameterizedTypeReference<?> targetType, @Nullable String name) Variant ofMetadataExtractorRegistry.metadataToExtract(MimeType, Class, String)that acceptsParameterizedTypeReferenceinstead ofClassfor specifying a target type with generic parameters.<T> voidMetadataExtractorRegistry.metadataToExtract(MimeType mimeType, ParameterizedTypeReference<T> type, BiConsumer<T, Map<String, Object>> mapper) Variant ofMetadataExtractorRegistry.metadataToExtract(MimeType, Class, BiConsumer)that acceptsParameterizedTypeReferenceinstead ofClassfor specifying a target type with generic parameters.<T> Flux<T> RSocketRequester.RetrieveSpec.retrieveFlux(ParameterizedTypeReference<T> dataTypeRef) Variant ofRSocketRequester.RetrieveSpec.retrieveFlux(Class)for when the dataType has to have a generic type.<T> 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
Methods in org.springframework.messaging.rsocket.service that return ParameterizedTypeReferenceModifier and TypeMethodDescriptionRSocketRequestValues.getPayloadElementType()Return the element type for a Publisher payload.Methods in org.springframework.messaging.rsocket.service with parameters of type ParameterizedTypeReferenceModifier and TypeMethodDescription<T, P extends Publisher<T>>
RSocketRequestValues.BuilderRSocketRequestValues.Builder.setPayload(P payload, ParameterizedTypeReference<T> elementTye) Set the request payload value to be serialized.Constructors in org.springframework.messaging.rsocket.service with parameters of type ParameterizedTypeReferenceModifierConstructorDescriptionRSocketRequestValues(@Nullable String route, @Nullable List<Object> routeVariables, @Nullable org.springframework.messaging.rsocket.service.RSocketRequestValues.MetadataHelper metadataHelper, @Nullable Object payloadValue, @Nullable Publisher<?> payload, @Nullable ParameterizedTypeReference<?> payloadElementType) -
Uses of ParameterizedTypeReference in org.springframework.mock.web.reactive.function.server
Methods in org.springframework.mock.web.reactive.function.server with parameters of type ParameterizedTypeReferenceModifier and TypeMethodDescription<S> Flux<S> MockServerRequest.bodyToFlux(ParameterizedTypeReference<S> typeReference) <S> Mono<S> MockServerRequest.bodyToMono(ParameterizedTypeReference<S> typeReference) -
Uses of ParameterizedTypeReference in org.springframework.test.util
Methods in org.springframework.test.util with parameters of type ParameterizedTypeReferenceModifier and TypeMethodDescription<T> voidJsonPathExpectationsHelper.assertValue(String content, Matcher<? super T> matcher, ParameterizedTypeReference<T> targetType) An overloaded variant ofJsonPathExpectationsHelper.assertValue(String, Matcher)that also accepts a target type for the resulting value that allows generic types to be defined.<T> TJsonPathExpectationsHelper.evaluateJsonPath(String content, ParameterizedTypeReference<T> targetType) Variant ofJsonPathExpectationsHelper.evaluateJsonPath(String)with a target type that has generics. -
Uses of ParameterizedTypeReference in org.springframework.test.web.reactive.server
Methods in org.springframework.test.web.reactive.server with parameters of type ParameterizedTypeReferenceModifier 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 extends @Nullable Object>
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.JsonPathAssertions.value(ParameterizedTypeReference<T> targetType, Matcher<? super T> matcher) Deprecated, for removal: This API element is subject to removal in a future version. -
Uses of ParameterizedTypeReference in org.springframework.test.web.servlet.client
Methods in org.springframework.test.web.servlet.client with parameters of type ParameterizedTypeReferenceModifier and TypeMethodDescription<B> RestTestClient.BodySpec<B, ?> RestTestClient.ResponseSpec.expectBody(ParameterizedTypeReference<B> bodyType) Alternative toRestTestClient.ResponseSpec.expectBody(Class)that accepts information about a target type with generics.<T> EntityExchangeResult<T> RestTestClient.ResponseSpec.returnResult(ParameterizedTypeReference<T> elementTypeRef) Alternative toRestTestClient.ResponseSpec.returnResult(Class)that allows specifying a response body type with generics. -
Uses of ParameterizedTypeReference in org.springframework.test.web.support
Methods in org.springframework.test.web.support with parameters of type ParameterizedTypeReferenceModifier and TypeMethodDescription<T> BAbstractJsonPathAssertions.value(ParameterizedTypeReference<T> targetType, Consumer<T> consumer) Consume the result of the JSONPath evaluation and provide a parameterized type. -
Uses of ParameterizedTypeReference in org.springframework.web.client
Methods in org.springframework.web.client with parameters of type ParameterizedTypeReferenceModifier and TypeMethodDescriptionRestClient.RequestBodySpec.body(T body, ParameterizedTypeReference<T> bodyType) Set the body of the request to the givenObject.<T> @Nullable TRestClient.ResponseSpec.body(ParameterizedTypeReference<T> bodyType) Extract the body as an object of the given type.<T> @Nullable TRestClient.RequestHeadersSpec.ConvertibleClientHttpResponse.bodyTo(ParameterizedTypeReference<T> bodyType) Extract the response body as an object of the given type.<T> ResponseEntity<T> RestOperations.exchange(String url, HttpMethod method, @Nullable HttpEntity<?> requestEntity, ParameterizedTypeReference<T> responseType, @Nullable Object... uriVariables) Execute the HTTP method to the given URI template, writing the given request entity to the request, and return the response asResponseEntity.<T> ResponseEntity<T> RestOperations.exchange(String url, HttpMethod method, @Nullable HttpEntity<?> requestEntity, ParameterizedTypeReference<T> responseType, Map<String, ? extends @Nullable Object> uriVariables) Execute the HTTP method to the given URI template, writing the given request entity to the request, and return the response asResponseEntity.<T> ResponseEntity<T> RestOperations.exchange(URI url, HttpMethod method, @Nullable HttpEntity<?> requestEntity, ParameterizedTypeReference<T> responseType) Execute the HTTP method to the given URI template, writing the given request entity to the request, and return the response asResponseEntity.<T> ResponseEntity<T> RestOperations.exchange(RequestEntity<?> requestEntity, ParameterizedTypeReference<T> responseType) Execute the request specified in the givenRequestEntityand return the response asResponseEntity.<T> ResponseEntity<T> RestTemplate.exchange(String url, HttpMethod method, @Nullable HttpEntity<?> requestEntity, ParameterizedTypeReference<T> responseType, @Nullable Object... uriVariables) <T> ResponseEntity<T> RestTemplate.exchange(String url, HttpMethod method, @Nullable HttpEntity<?> requestEntity, ParameterizedTypeReference<T> responseType, Map<String, ? extends @Nullable Object> uriVariables) <T> ResponseEntity<T> RestTemplate.exchange(URI url, HttpMethod method, @Nullable HttpEntity<?> requestEntity, ParameterizedTypeReference<T> responseType) <T> ResponseEntity<T> RestTemplate.exchange(RequestEntity<?> entity, ParameterizedTypeReference<T> responseType) <E> @Nullable ERestClientResponseException.getResponseBodyAs(ParameterizedTypeReference<E> targetType) <T> TRestClient.ResponseSpec.requiredBody(ParameterizedTypeReference<T> bodyType) Extract the body as an object of the given type.<T> ResponseEntity<T> RestClient.ResponseSpec.toEntity(ParameterizedTypeReference<T> bodyType) Return aResponseEntitywith the body decoded to an Object of the given type. -
Uses of ParameterizedTypeReference in org.springframework.web.client.support
Methods in org.springframework.web.client.support with parameters of type ParameterizedTypeReferenceModifier and TypeMethodDescription<T> @Nullable TNotFoundRestClientAdapterDecorator.exchangeForBody(HttpRequestValues values, ParameterizedTypeReference<T> bodyType) <T> @Nullable TRestClientAdapter.exchangeForBody(HttpRequestValues values, ParameterizedTypeReference<T> bodyType) <T> @Nullable TRestTemplateAdapter.exchangeForBody(HttpRequestValues values, ParameterizedTypeReference<T> bodyType) <T> ResponseEntity<T> NotFoundRestClientAdapterDecorator.exchangeForEntity(HttpRequestValues values, ParameterizedTypeReference<T> bodyType) <T> ResponseEntity<T> RestClientAdapter.exchangeForEntity(HttpRequestValues values, ParameterizedTypeReference<T> bodyType) <T> ResponseEntity<T> RestTemplateAdapter.exchangeForEntity(HttpRequestValues values, ParameterizedTypeReference<T> bodyType) -
Uses of ParameterizedTypeReference in org.springframework.web.reactive.function
Methods in org.springframework.web.reactive.function with parameters of type ParameterizedTypeReferenceModifier 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 aParameterizedTypeReferencefor 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 aPublisheror another producer adaptable to aPublisherviaReactiveAdapterRegistry.static <T, P extends Publisher<T>>
BodyInserter<P, ReactiveHttpOutputMessage> BodyInserters.fromPublisher(P publisher, ParameterizedTypeReference<T> elementTypeRef) Inserter to write the givenPublisher.static <T> BodyInserter<T, ReactiveHttpOutputMessage> BodyInserters.fromValue(T body, ParameterizedTypeReference<T> bodyType) Inserter to write the given value.static <T> BodyExtractor<Flux<T>, ReactiveHttpInputMessage> BodyExtractors.toFlux(ParameterizedTypeReference<T> typeRef) Variant ofBodyExtractors.toFlux(Class)for type information with generics.static <T> BodyExtractor<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 aParameterizedTypeReferencefor the element type, which allows specifying generic type information. -
Uses of ParameterizedTypeReference in org.springframework.web.reactive.function.client
Methods in org.springframework.web.reactive.function.client with parameters of type ParameterizedTypeReferenceModifier and TypeMethodDescription<S, P extends Publisher<S>>
ClientRequest.BuilderClientRequest.Builder.body(P publisher, ParameterizedTypeReference<S> typeReference) Set the body of the request to the givenPublisherand return it.WebClient.RequestBodySpec.body(Object producer, ParameterizedTypeReference<?> elementTypeRef) Variant ofWebClient.RequestBodySpec.body(Publisher, ParameterizedTypeReference)that allows using any producer that can be resolved toPublisherviaReactiveAdapterRegistry.<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> Flux<T> ClientResponse.bodyToFlux(ParameterizedTypeReference<T> elementTypeRef) Extract the body to aFlux.<T> Flux<T> WebClient.ResponseSpec.bodyToFlux(ParameterizedTypeReference<T> elementTypeRef) Variant ofWebClient.ResponseSpec.bodyToFlux(Class)with aParameterizedTypeReference.<T> Mono<T> ClientResponse.bodyToMono(ParameterizedTypeReference<T> elementTypeRef) Extract the body to aMono.<T> Mono<T> WebClient.ResponseSpec.bodyToMono(ParameterizedTypeReference<T> elementTypeRef) Variant ofWebClient.ResponseSpec.bodyToMono(Class)with aParameterizedTypeReference.<T> WebClient.RequestHeadersSpec<?> WebClient.RequestBodySpec.bodyValue(T body, ParameterizedTypeReference<T> bodyType) Shortcut forWebClient.RequestBodySpec.body(BodyInserter)with a value inserter.<E> @Nullable EWebClientResponseException.getResponseBodyAs(ParameterizedTypeReference<E> targetType) <T> Mono<ResponseEntity<T>> ClientResponse.toEntity(ParameterizedTypeReference<T> bodyTypeReference) Return this response as a delayedResponseEntity.<T> Mono<ResponseEntity<T>> WebClient.ResponseSpec.toEntity(ParameterizedTypeReference<T> bodyTypeReference) Variant ofWebClient.ResponseSpec.toEntity(Class)with aParameterizedTypeReference.<T> Mono<ResponseEntity<Flux<T>>> WebClient.ResponseSpec.toEntityFlux(ParameterizedTypeReference<T> elementTypeReference) Variant ofWebClient.ResponseSpec.toEntityFlux(Class)with aParameterizedTypeReference.<T> Mono<ResponseEntity<List<T>>> ClientResponse.toEntityList(ParameterizedTypeReference<T> elementTypeRef) Return this response as a delayed list ofResponseEntitys.<T> Mono<ResponseEntity<List<T>>> WebClient.ResponseSpec.toEntityList(ParameterizedTypeReference<T> elementTypeRef) Variant ofWebClient.ResponseSpec.toEntityList(Class)with aParameterizedTypeReference. -
Uses of ParameterizedTypeReference in org.springframework.web.reactive.function.client.support
Methods in org.springframework.web.reactive.function.client.support with parameters of type ParameterizedTypeReferenceModifier and TypeMethodDescription<T> Flux<T> ClientResponseWrapper.bodyToFlux(ParameterizedTypeReference<T> elementTypeRef) <T> Mono<T> ClientResponseWrapper.bodyToMono(ParameterizedTypeReference<T> elementTypeRef) <T> @Nullable TNotFoundWebClientAdapterDecorator.exchangeForBody(HttpRequestValues values, ParameterizedTypeReference<T> bodyType) <T> Flux<T> NotFoundWebClientAdapterDecorator.exchangeForBodyFlux(HttpRequestValues values, ParameterizedTypeReference<T> bodyType) <T> Flux<T> WebClientAdapter.exchangeForBodyFlux(HttpRequestValues requestValues, ParameterizedTypeReference<T> bodyType) <T> Mono<T> NotFoundWebClientAdapterDecorator.exchangeForBodyMono(HttpRequestValues values, ParameterizedTypeReference<T> bodyType) <T> Mono<T> WebClientAdapter.exchangeForBodyMono(HttpRequestValues requestValues, ParameterizedTypeReference<T> bodyType) <T> ResponseEntity<T> NotFoundWebClientAdapterDecorator.exchangeForEntity(HttpRequestValues values, ParameterizedTypeReference<T> bodyType) <T> Mono<ResponseEntity<Flux<T>>> NotFoundWebClientAdapterDecorator.exchangeForEntityFlux(HttpRequestValues values, ParameterizedTypeReference<T> bodyType) <T> Mono<ResponseEntity<Flux<T>>> WebClientAdapter.exchangeForEntityFlux(HttpRequestValues requestValues, ParameterizedTypeReference<T> bodyType) <T> Mono<ResponseEntity<T>> NotFoundWebClientAdapterDecorator.exchangeForEntityMono(HttpRequestValues values, ParameterizedTypeReference<T> bodyType) <T> Mono<ResponseEntity<T>> WebClientAdapter.exchangeForEntityMono(HttpRequestValues requestValues, ParameterizedTypeReference<T> bodyType) <T> Mono<ResponseEntity<T>> ClientResponseWrapper.toEntity(ParameterizedTypeReference<T> bodyTypeReference) <T> Mono<ResponseEntity<List<T>>> ClientResponseWrapper.toEntityList(ParameterizedTypeReference<T> elementTypeRef) -
Uses of ParameterizedTypeReference in org.springframework.web.reactive.function.server
Methods in org.springframework.web.reactive.function.server with parameters of type ParameterizedTypeReferenceModifier and TypeMethodDescriptionServerResponse.BodyBuilder.body(Object producer, ParameterizedTypeReference<?> elementTypeRef) Variant ofServerResponse.BodyBuilder.body(Publisher, ParameterizedTypeReference)that allows using any producer that can be resolved toPublisherviaReactiveAdapterRegistry.<T, P extends Publisher<T>>
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 toPublisherviaReactiveAdapterRegistry.<T> Flux<T> ServerRequest.bodyToFlux(ParameterizedTypeReference<T> typeReference) Extract the body to aFlux.<T> Mono<T> ServerRequest.bodyToMono(ParameterizedTypeReference<T> typeReference) Extract the body to aMono.<T> Mono<ServerResponse> ServerResponse.BodyBuilder.bodyValue(T body, ParameterizedTypeReference<T> bodyType) Set the body of the response to the givenObjectand return it.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
Methods in org.springframework.web.reactive.function.server.support with parameters of type ParameterizedTypeReferenceModifier and TypeMethodDescription<T> Flux<T> ServerRequestWrapper.bodyToFlux(ParameterizedTypeReference<T> typeReference) <T> Mono<T> ServerRequestWrapper.bodyToMono(ParameterizedTypeReference<T> typeReference) -
Uses of ParameterizedTypeReference in org.springframework.web.service.invoker
Methods in org.springframework.web.service.invoker that return ParameterizedTypeReferenceModifier and TypeMethodDescriptionReactiveHttpRequestValues.getBodyPublisherElementType()Return the element type for a body publisher.HttpRequestValues.getBodyValueType()Return the type for the body value.Methods in org.springframework.web.service.invoker with parameters of type ParameterizedTypeReferenceModifier and TypeMethodDescription<T, P extends Publisher<T>>
ReactiveHttpRequestValues.BuilderReactiveHttpRequestValues.Builder.addRequestPartPublisher(String name, P publisher, ParameterizedTypeReference<T> elementTye) Variant ofReactiveHttpRequestValues.Builder.addRequestPart(String, Object)that allows the part value to be produced by aPublisher.protected HttpRequestValuesHttpRequestValues.Builder.createRequestValues(@Nullable HttpMethod httpMethod, @Nullable URI uri, @Nullable UriBuilderFactory uriBuilderFactory, @Nullable String uriTemplate, Map<String, String> uriVars, HttpHeaders headers, MultiValueMap<String, String> cookies, @Nullable Object version, Map<String, Object> attributes, @Nullable Object bodyValue, @Nullable ParameterizedTypeReference<?> bodyValueType) CreateHttpRequestValuesfrom values passed to theHttpRequestValues.Builder.protected ReactiveHttpRequestValuesReactiveHttpRequestValues.Builder.createRequestValues(@Nullable HttpMethod httpMethod, @Nullable URI uri, @Nullable UriBuilderFactory uriBuilderFactory, @Nullable String uriTemplate, Map<String, String> uriVars, HttpHeaders headers, MultiValueMap<String, String> cookies, @Nullable Object version, Map<String, Object> attributes, @Nullable Object bodyValue, @Nullable ParameterizedTypeReference<?> bodyValueType) <T> @Nullable TAbstractReactorHttpExchangeAdapter.exchangeForBody(HttpRequestValues requestValues, ParameterizedTypeReference<T> bodyType) <T> @Nullable THttpExchangeAdapter.exchangeForBody(HttpRequestValues requestValues, ParameterizedTypeReference<T> bodyType) Perform the given request and decode the response content to the given type.<T> @Nullable THttpExchangeAdapterDecorator.exchangeForBody(HttpRequestValues requestValues, ParameterizedTypeReference<T> bodyType) <T> @Nullable TReactorHttpExchangeAdapterDecorator.exchangeForBody(HttpRequestValues requestValues, ParameterizedTypeReference<T> bodyType) <T> Flux<T> ReactorHttpExchangeAdapter.exchangeForBodyFlux(HttpRequestValues requestValues, ParameterizedTypeReference<T> bodyType) Perform the given request and decode the response content to a stream with elements of the given type.<T> Flux<T> ReactorHttpExchangeAdapterDecorator.exchangeForBodyFlux(HttpRequestValues requestValues, ParameterizedTypeReference<T> bodyType) <T> Mono<T> ReactorHttpExchangeAdapter.exchangeForBodyMono(HttpRequestValues requestValues, ParameterizedTypeReference<T> bodyType) Perform the given request and decode the response content to the given type.<T> Mono<T> ReactorHttpExchangeAdapterDecorator.exchangeForBodyMono(HttpRequestValues requestValues, ParameterizedTypeReference<T> bodyType) <T> ResponseEntity<T> AbstractReactorHttpExchangeAdapter.exchangeForEntity(HttpRequestValues requestValues, ParameterizedTypeReference<T> bodyType) <T> ResponseEntity<T> HttpExchangeAdapter.exchangeForEntity(HttpRequestValues requestValues, ParameterizedTypeReference<T> bodyType) Variant ofHttpExchangeAdapter.exchangeForBody(HttpRequestValues, ParameterizedTypeReference)with additional access to the response status and headers.<T> ResponseEntity<T> HttpExchangeAdapterDecorator.exchangeForEntity(HttpRequestValues requestValues, ParameterizedTypeReference<T> bodyType) <T> ResponseEntity<T> ReactorHttpExchangeAdapterDecorator.exchangeForEntity(HttpRequestValues requestValues, ParameterizedTypeReference<T> bodyType) <T> Mono<ResponseEntity<Flux<T>>> ReactorHttpExchangeAdapter.exchangeForEntityFlux(HttpRequestValues requestValues, ParameterizedTypeReference<T> bodyType) Variant ofReactorHttpExchangeAdapter.exchangeForBodyFlux(HttpRequestValues, ParameterizedTypeReference)with additional access to the response status and headers.<T> Mono<ResponseEntity<Flux<T>>> ReactorHttpExchangeAdapterDecorator.exchangeForEntityFlux(HttpRequestValues values, ParameterizedTypeReference<T> bodyType) <T> Mono<ResponseEntity<T>> ReactorHttpExchangeAdapter.exchangeForEntityMono(HttpRequestValues requestValues, ParameterizedTypeReference<T> bodyType) Variant ofReactorHttpExchangeAdapter.exchangeForBodyMono(HttpRequestValues, ParameterizedTypeReference)with additional access to the response status and headers.<T> Mono<ResponseEntity<T>> ReactorHttpExchangeAdapterDecorator.exchangeForEntityMono(HttpRequestValues values, ParameterizedTypeReference<T> bodyType) <T, P extends Publisher<T>>
voidReactiveHttpRequestValues.Builder.setBodyPublisher(P body, ParameterizedTypeReference<T> elementTye) Set the request body as a Reactive StreamsPublisher.voidHttpRequestValues.Builder.setBodyValue(@Nullable Object bodyValue, @Nullable ParameterizedTypeReference<?> valueType) Variant ofHttpRequestValues.Builder.setBodyValue(Object)with the body type.Constructors in org.springframework.web.service.invoker with parameters of type ParameterizedTypeReferenceModifierConstructorDescriptionprotectedHttpRequestValues(@Nullable HttpMethod httpMethod, @Nullable URI uri, @Nullable UriBuilderFactory uriBuilderFactory, @Nullable String uriTemplate, Map<String, String> uriVariables, HttpHeaders headers, MultiValueMap<String, String> cookies, @Nullable Object version, Map<String, Object> attributes, @Nullable Object bodyValue, @Nullable ParameterizedTypeReference<?> bodyValueType) ConstructHttpRequestValues. -
Uses of ParameterizedTypeReference in org.springframework.web.servlet.function
Methods in org.springframework.web.servlet.function with parameters of type ParameterizedTypeReferenceModifier and TypeMethodDescription<T> TServerRequest.body(ParameterizedTypeReference<T> bodyType) Extract the body as an object of the given type.<T> ServerResponseServerResponse.BodyBuilder.body(T body, ParameterizedTypeReference<T> bodyType) Set the body of the response to the givenObjectand return it.static <T> EntityResponse.Builder<T> EntityResponse.fromObject(T t, ParameterizedTypeReference<T> entityType) Create a builder with the given object and type reference.
Consumer-based variants