接口的使用
org.springframework.http.codec.ServerCodecConfigurer
使用ServerCodecConfigurer的程序包 程序包 说明 org.springframework.http.codec org.springframework.http.codec.support Provides implementations ofClientCodecConfigurerandServerCodecConfigurerbased on the converter implementations fromorg.springframework.http.codec.jsonand 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.reactivereactive HTTP adapter andHttpHandler.org.springframework.http.codec中ServerCodecConfigurer的使用
返回ServerCodecConfigurer的org.springframework.http.codec中的方法 修饰符和类型 方法 说明 ServerCodecConfigurerServerCodecConfigurer. clone()Create a copy of thisCodecConfigurer.static ServerCodecConfigurerServerCodecConfigurer. create()Static factory method for aServerCodecConfigurer.org.springframework.http.codec.support中ServerCodecConfigurer的使用
实现ServerCodecConfigurer的org.springframework.http.codec.support中的类 修饰符和类型 类 说明 classDefaultServerCodecConfigurerDefault implementation ofServerCodecConfigurer.org.springframework.test.web.reactive.server中ServerCodecConfigurer的使用
类型变量类型为ServerCodecConfigurer的org.springframework.test.web.reactive.server中的方法参数 修饰符和类型 方法 说明 WebTestClient.ControllerSpecWebTestClient.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中的方法 修饰符和类型 方法 说明 ServerCodecConfigurerWebFluxConfigurationSupport. serverCodecConfigurer()Return the configurer for HTTP message readers and writers.参数类型为ServerCodecConfigurer的org.springframework.web.reactive.config中的方法 修饰符和类型 方法 说明 protected voidDelegatingWebFluxConfiguration. configureHttpMessageCodecs(ServerCodecConfigurer configurer)protected voidWebFluxConfigurationSupport. configureHttpMessageCodecs(ServerCodecConfigurer configurer)Override to configure the HTTP message readers and writers to use.default voidWebFluxConfigurer. configureHttpMessageCodecs(ServerCodecConfigurer configurer)Configure custom HTTP message readers and writers or override built-in ones.voidWebFluxConfigurerComposite. configureHttpMessageCodecs(ServerCodecConfigurer configurer)RequestMappingHandlerAdapterWebFluxConfigurationSupport. requestMappingHandlerAdapter(ReactiveAdapterRegistry reactiveAdapterRegistry, ServerCodecConfigurer serverCodecConfigurer, FormattingConversionService conversionService, Validator validator)ResponseBodyResultHandlerWebFluxConfigurationSupport. responseBodyResultHandler(ReactiveAdapterRegistry reactiveAdapterRegistry, ServerCodecConfigurer serverCodecConfigurer, RequestedContentTypeResolver contentTypeResolver)ResponseEntityResultHandlerWebFluxConfigurationSupport. responseEntityResultHandler(ReactiveAdapterRegistry reactiveAdapterRegistry, ServerCodecConfigurer serverCodecConfigurer, RequestedContentTypeResolver contentTypeResolver)RouterFunctionMappingWebFluxConfigurationSupport. routerFunctionMapping(ServerCodecConfigurer serverCodecConfigurer)ServerResponseResultHandlerWebFluxConfigurationSupport. serverResponseResultHandler(ServerCodecConfigurer serverCodecConfigurer)org.springframework.web.reactive.function.server中ServerCodecConfigurer的使用
类型变量类型为ServerCodecConfigurer的org.springframework.web.reactive.function.server中的方法参数 修饰符和类型 方法 说明 HandlerStrategies.BuilderHandlerStrategies.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中的方法 修饰符和类型 方法 说明 ServerCodecConfigurerHttpWebHandlerAdapter. getCodecConfigurer()Return the configuredServerCodecConfigurer.参数类型为ServerCodecConfigurer的org.springframework.web.server.adapter中的方法 修饰符和类型 方法 说明 WebHttpHandlerBuilderWebHttpHandlerBuilder. codecConfigurer(ServerCodecConfigurer codecConfigurer)Configure theServerCodecConfigurerto set on theWebServerExchange.voidHttpWebHandlerAdapter. setCodecConfigurer(ServerCodecConfigurer codecConfigurer)Configure a customServerCodecConfigurer.参数类型为ServerCodecConfigurer的org.springframework.web.server.adapter中的构造器 构造器 说明 DefaultServerWebExchange(ServerHttpRequest request, ServerHttpResponse response, WebSessionManager sessionManager, ServerCodecConfigurer codecConfigurer, LocaleContextResolver localeContextResolver)