接口的使用
org.springframework.http.codec.ServerCodecConfigurer
使用ServerCodecConfigurer的程序包 程序包 说明 org.springframework.http.codec org.springframework.http.codec.support Provides implementations ofClientCodecConfigurer
andServerCodecConfigurer
based on the converter implementations fromorg.springframework.http.codec.json
and co.org.springframework.test.web.reactive.server Support for testing Spring WebFlux server endpoints viaWebTestClient
.org.springframework.web.reactive.config Spring WebFlux configuration infrastructure.org.springframework.web.reactive.function.server Provides the types that make up Spring's functional web framework for Reactive environments.org.springframework.web.server.adapter Implementations to adapt to the underlyingorg.springframework.http.client.reactive
reactive HTTP adapter andHttpHandler
.org.springframework.http.codec中ServerCodecConfigurer的使用
返回ServerCodecConfigurer的org.springframework.http.codec中的方法 修饰符和类型 方法 说明 ServerCodecConfigurer
ServerCodecConfigurer. clone()
Create a copy of thisCodecConfigurer
.static ServerCodecConfigurer
ServerCodecConfigurer. create()
Static factory method for aServerCodecConfigurer
.org.springframework.http.codec.support中ServerCodecConfigurer的使用
实现ServerCodecConfigurer的org.springframework.http.codec.support中的类 修饰符和类型 类 说明 class
DefaultServerCodecConfigurer
Default implementation ofServerCodecConfigurer
.org.springframework.test.web.reactive.server中ServerCodecConfigurer的使用
类型变量类型为ServerCodecConfigurer的org.springframework.test.web.reactive.server中的方法参数 修饰符和类型 方法 说明 WebTestClient.ControllerSpec
WebTestClient.ControllerSpec. httpMessageCodecs(Consumer<ServerCodecConfigurer> configurer)
Configure custom HTTP message readers and writers or override built-in ones.org.springframework.web.reactive.config中ServerCodecConfigurer的使用
返回ServerCodecConfigurer的org.springframework.web.reactive.config中的方法 修饰符和类型 方法 说明 ServerCodecConfigurer
WebFluxConfigurationSupport. serverCodecConfigurer()
Return the configurer for HTTP message readers and writers.参数类型为ServerCodecConfigurer的org.springframework.web.reactive.config中的方法 修饰符和类型 方法 说明 protected void
DelegatingWebFluxConfiguration. configureHttpMessageCodecs(ServerCodecConfigurer configurer)
protected void
WebFluxConfigurationSupport. configureHttpMessageCodecs(ServerCodecConfigurer configurer)
Override to configure the HTTP message readers and writers to use.default void
WebFluxConfigurer. configureHttpMessageCodecs(ServerCodecConfigurer configurer)
Configure custom HTTP message readers and writers or override built-in ones.void
WebFluxConfigurerComposite. configureHttpMessageCodecs(ServerCodecConfigurer configurer)
RequestMappingHandlerAdapter
WebFluxConfigurationSupport. requestMappingHandlerAdapter(ReactiveAdapterRegistry reactiveAdapterRegistry, ServerCodecConfigurer serverCodecConfigurer, FormattingConversionService conversionService, Validator validator)
ResponseBodyResultHandler
WebFluxConfigurationSupport. responseBodyResultHandler(ReactiveAdapterRegistry reactiveAdapterRegistry, ServerCodecConfigurer serverCodecConfigurer, RequestedContentTypeResolver contentTypeResolver)
ResponseEntityResultHandler
WebFluxConfigurationSupport. responseEntityResultHandler(ReactiveAdapterRegistry reactiveAdapterRegistry, ServerCodecConfigurer serverCodecConfigurer, RequestedContentTypeResolver contentTypeResolver)
RouterFunctionMapping
WebFluxConfigurationSupport. routerFunctionMapping(ServerCodecConfigurer serverCodecConfigurer)
ServerResponseResultHandler
WebFluxConfigurationSupport. serverResponseResultHandler(ServerCodecConfigurer serverCodecConfigurer)
org.springframework.web.reactive.function.server中ServerCodecConfigurer的使用
类型变量类型为ServerCodecConfigurer的org.springframework.web.reactive.function.server中的方法参数 修饰符和类型 方法 说明 HandlerStrategies.Builder
HandlerStrategies.Builder. codecs(Consumer<ServerCodecConfigurer> consumer)
Customize the list of server-side HTTP message readers and writers.org.springframework.web.server.adapter中ServerCodecConfigurer的使用
返回ServerCodecConfigurer的org.springframework.web.server.adapter中的方法 修饰符和类型 方法 说明 ServerCodecConfigurer
HttpWebHandlerAdapter. getCodecConfigurer()
Return the configuredServerCodecConfigurer
.参数类型为ServerCodecConfigurer的org.springframework.web.server.adapter中的方法 修饰符和类型 方法 说明 WebHttpHandlerBuilder
WebHttpHandlerBuilder. codecConfigurer(ServerCodecConfigurer codecConfigurer)
Configure theServerCodecConfigurer
to set on theWebServerExchange
.void
HttpWebHandlerAdapter. setCodecConfigurer(ServerCodecConfigurer codecConfigurer)
Configure a customServerCodecConfigurer
.参数类型为ServerCodecConfigurer的org.springframework.web.server.adapter中的构造器 构造器 说明 DefaultServerWebExchange(ServerHttpRequest request, ServerHttpResponse response, WebSessionManager sessionManager, ServerCodecConfigurer codecConfigurer, LocaleContextResolver localeContextResolver)