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
-
Method Summary
Modifier and TypeMethodDescriptionvoid
configureHttpMessageCodecs
(ServerCodecConfigurer configurer) Factory to create a bean post processor to registerJStachioModelViewConfigurer
s.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, 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:
configureHttpMessageCodecs
in interfaceWebFluxConfigurer
-
viewSetupHandlerInterceptor
Factory to create a bean post processor to registerJStachioModelViewConfigurer
s.- Parameters:
context
- supplied by spring- Returns:
- a post processor that will configure JStachio Model Views before being rendered.
-