Class WebConfig
java.lang.Object
io.jstach.opt.spring.webflux.example.WebConfig
- All Implemented Interfaces:
WebFluxConfigurer
Configures WebFlux using
JStachioEncoder to allow returning models which will
be rendered using JStachio runtime.- Author:
- agentgt, dsyer
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidconfigureHttpMessageCodecs(ServerCodecConfigurer configurer) Factory to create a bean post processor to registerJStachioModelViewConfigurers.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.springframework.web.reactive.config.WebFluxConfigurer
addCorsMappings, addFormatters, addResourceHandlers, configureArgumentResolvers, configureContentTypeResolver, configurePathMatching, configureViewResolvers, getMessageCodesResolver, getValidator, getWebSocketService
-
Constructor Details
-
WebConfig
Configures based on the jstachio found by spring- Parameters:
jstachio- the found jstachio
-
-
Method Details
-
configureHttpMessageCodecs
- Specified by:
configureHttpMessageCodecsin interfaceWebFluxConfigurer
-
viewSetupHandlerInterceptor
Factory to create a bean post processor to registerJStachioModelViewConfigurers.- Parameters:
context- supplied by spring- Returns:
- a post processor that will configure JStachio Model Views before being rendered.
-