Annotation Interface EnableWebFluxExtension
@Retention(RUNTIME)
@Target(TYPE)
@Documented
@Import(io.microsphere.spring.webflux.annotation.WebFluxExtensionBeanDefinitionRegistrar.class)
@EnableWebExtension
public @interface EnableWebFluxExtension
Enable annotation to extend the features of Spring WebFlux
- Since:
- 1.0.0
- Author:
- Mercy
- See Also:
-
EnableWebFluxEnableWebExtensionWebFluxExtensionBeanDefinitionRegistrar
-
Optional Element Summary
Optional ElementsModifier and TypeOptional ElementDescriptionbooleanIndicate whether Spring WebHandlerMethodshould be intercepted.booleanIndicate whether it publishes the Spring Web extension events:HandlerMethodArgumentsResolvedEvent(if enabled)WebEndpointMappingsReadyEvent(if enabled)ServerRequestHandledEventafterWebHandler was handledbooleanIndicate whether The Spring Web registers the instances ofWebEndpointMappingthat source from Spring WebMVC, Spring WebFlux or Classical Servlet.io.microsphere.spring.web.util.RequestContextStrategyIndicate where theRequestAttributesstores.booleanIndicate whether theReversedProxyHandlerMappingis enabled or not.booleanIndicate thatRequestAttributesstores theargumentofHandlerMethodthat annotatedRequestBodybooleanIndicate thatRequestAttributesstores the return value ofHandlerMethodbefore write as theResponseBody
-
Element Details
-
registerWebEndpointMappings
@AliasFor(annotation=io.microsphere.spring.web.annotation.EnableWebExtension.class) boolean registerWebEndpointMappingsIndicate whether The Spring Web registers the instances ofWebEndpointMappingthat source from Spring WebMVC, Spring WebFlux or Classical Servlet.- Returns:
trueas default- See Also:
-
WebEndpointMappingWebEndpointMappingResolverWebEndpointMappingRegistryWebEndpointMappingFactoryWebEndpointMappingFilter
- Default:
- true
-
interceptHandlerMethods
@AliasFor(annotation=io.microsphere.spring.web.annotation.EnableWebExtension.class) boolean interceptHandlerMethodsIndicate whether Spring WebHandlerMethodshould be intercepted. Iftrue,HandlerMethodArgumentInterceptorandHandlerMethodInterceptorbeans will be initialized and then be invoked aroundHandlerMethodbeing executed.- Returns:
trueas default- See Also:
-
HandlerMethodArgumentInterceptorHandlerMethodInterceptor
- Default:
- true
-
publishEvents
@AliasFor(annotation=io.microsphere.spring.web.annotation.EnableWebExtension.class) boolean publishEventsIndicate whether it publishes the Spring Web extension events:HandlerMethodArgumentsResolvedEvent(if enabled)WebEndpointMappingsReadyEvent(if enabled)ServerRequestHandledEventafterWebHandler was handled
- Returns:
trueas default- See Also:
-
WebEventPublisherWebEndpointMappingsReadyEventHandlerMethodArgumentsResolvedEventRequestHandledEventPublishingWebFilterServerRequestHandledEventRequestHandledEvent
- Default:
- true
-
requestContextStrategy
@AliasFor(annotation=io.microsphere.spring.web.annotation.EnableWebExtension.class) io.microsphere.spring.web.util.RequestContextStrategy requestContextStrategyIndicate where theRequestAttributesstores.- Returns:
RequestContextStrategy.DEFAULTas default- See Also:
-
RequestAttributesRequestContextHolderRequestContextWebFilterRequestContextStrategy
- Default:
- DEFAULT
-
storeRequestBodyArgument
boolean storeRequestBodyArgumentIndicate thatRequestAttributesstores theargumentofHandlerMethodthat annotatedRequestBody- Returns:
falseas default- See Also:
-
RequestBodyHandlerMethodRequestAttributesUtils.getHandlerMethodRequestBodyArgument(RequestAttributes, HandlerMethod)
- Default:
- false
-
storeResponseBodyReturnValue
boolean storeResponseBodyReturnValueIndicate thatRequestAttributesstores the return value ofHandlerMethodbefore write as theResponseBody- Returns:
falseas default- See Also:
-
ResponseBodyRequestAttributesUtils.getHandlerMethodReturnValue(RequestAttributes, HandlerMethod)
- Default:
- false
-
reversedProxyHandlerMapping
boolean reversedProxyHandlerMappingIndicate whether theReversedProxyHandlerMappingis enabled or not.- Returns:
falseas default- See Also:
- Default:
- false
-