Class Jaxb2HttpMessageCodecAutoConfiguration
java.lang.Object
org.bremersee.xml.spring.boot.http.codec.Jaxb2HttpMessageCodecAutoConfiguration
- All Implemented Interfaces:
org.springframework.web.reactive.config.WebFluxConfigurer
@ConditionalOnWebApplication(type=REACTIVE)
@ConditionalOnClass({org.springframework.web.reactive.config.WebFluxConfigurer.class,JaxbContextBuilder.class})
@ConditionalOnBean(JaxbContextBuilder.class)
@AutoConfigureAfter(JaxbContextBuilderAutoConfiguration.class)
@AutoConfiguration
public class Jaxb2HttpMessageCodecAutoConfiguration
extends Object
implements org.springframework.web.reactive.config.WebFluxConfigurer
The Jaxb 2 http message codec autoconfiguration.
- Author:
- Christian Bremer
-
Constructor Summary
ConstructorsConstructorDescriptionJaxb2HttpMessageCodecAutoConfiguration
(org.springframework.beans.factory.ObjectProvider<JaxbContextBuilder> jaxbContextBuilder, org.springframework.beans.factory.ObjectProvider<JaxbReadWriteConfigurer> readWriteConfigurers) Instantiates a new Jaxb 2 http message codec autoconfiguration. -
Method Summary
Modifier and TypeMethodDescriptionvoid
configureHttpMessageCodecs
(org.springframework.http.codec.ServerCodecConfigurer configurer) void
init()
Init.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.springframework.web.reactive.config.WebFluxConfigurer
addCorsMappings, addFormatters, addResourceHandlers, configureArgumentResolvers, configureBlockingExecution, configureContentTypeResolver, configurePathMatching, configureViewResolvers, getMessageCodesResolver, getValidator, getWebSocketService
-
Constructor Details
-
Jaxb2HttpMessageCodecAutoConfiguration
public Jaxb2HttpMessageCodecAutoConfiguration(org.springframework.beans.factory.ObjectProvider<JaxbContextBuilder> jaxbContextBuilder, org.springframework.beans.factory.ObjectProvider<JaxbReadWriteConfigurer> readWriteConfigurers) Instantiates a new Jaxb 2 http message codec autoconfiguration.- Parameters:
jaxbContextBuilder
- the jaxb context builderreadWriteConfigurers
- the read write configurers
-
-
Method Details
-
init
@EventListener(org.springframework.boot.context.event.ApplicationReadyEvent.class) public void init()Init. -
configureHttpMessageCodecs
public void configureHttpMessageCodecs(@NonNull org.springframework.http.codec.ServerCodecConfigurer configurer) - Specified by:
configureHttpMessageCodecs
in interfaceorg.springframework.web.reactive.config.WebFluxConfigurer
-