Package org.springdoc.webflux.ui
Class SwaggerWebFluxConfigurer
java.lang.Object
org.springdoc.ui.AbstractSwaggerConfigurer
org.springdoc.webflux.ui.SwaggerWebFluxConfigurer
- All Implemented Interfaces:
org.springframework.web.reactive.config.WebFluxConfigurer
public class SwaggerWebFluxConfigurer
extends org.springdoc.ui.AbstractSwaggerConfigurer
implements org.springframework.web.reactive.config.WebFluxConfigurer
The type Swagger web flux configurer.
- Author:
- bnasslahsen
-
Nested Class Summary
Nested classes/interfaces inherited from class org.springdoc.ui.AbstractSwaggerConfigurer
org.springdoc.ui.AbstractSwaggerConfigurer.SwaggerResourceHandlerConfig -
Constructor Summary
ConstructorsConstructorDescriptionSwaggerWebFluxConfigurer(org.springdoc.core.properties.SwaggerUiConfigProperties swaggerUiConfigProperties, org.springframework.boot.autoconfigure.web.WebProperties springWebProperties, org.springframework.boot.autoconfigure.web.reactive.WebFluxProperties springWebFluxProperties, SwaggerIndexTransformer swaggerIndexTransformer, SwaggerResourceResolver swaggerResourceResolver, SwaggerWelcomeCommon swaggerWelcomeCommon) Instantiates a new Swagger web flux configurer. -
Method Summary
Modifier and TypeMethodDescriptionvoidaddResourceHandlers(org.springframework.web.reactive.config.ResourceHandlerRegistry registry) protected voidaddSwaggerResourceHandler(org.springframework.web.reactive.config.ResourceHandlerRegistry registry, org.springdoc.ui.AbstractSwaggerConfigurer.SwaggerResourceHandlerConfig handlerConfig) Add a resource handler that uses the Swagger resource resolver and transformer.protected voidaddSwaggerResourceHandlers(org.springframework.web.reactive.config.ResourceHandlerRegistry registry, org.springdoc.ui.AbstractSwaggerConfigurer.SwaggerResourceHandlerConfig... handlerConfigs) Add resource handlers that use the Swagger resource resolver and transformer.protected org.springframework.cache.CachegetCache()Gets the Swagger resource chain cache.protected Stringprotected StringMethods inherited from class org.springdoc.ui.AbstractSwaggerConfigurer
combinePatterns, getSwaggerHandlerConfigs, getSwaggerWebjarHandlerConfigsMethods 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, addErrorResponseInterceptors, addFormatters, configureArgumentResolvers, configureBlockingExecution, configureContentTypeResolver, configureHttpMessageCodecs, configurePathMatching, configureViewResolvers, getMessageCodesResolver, getValidator, getWebSocketService
-
Constructor Details
-
SwaggerWebFluxConfigurer
public SwaggerWebFluxConfigurer(org.springdoc.core.properties.SwaggerUiConfigProperties swaggerUiConfigProperties, org.springframework.boot.autoconfigure.web.WebProperties springWebProperties, org.springframework.boot.autoconfigure.web.reactive.WebFluxProperties springWebFluxProperties, SwaggerIndexTransformer swaggerIndexTransformer, SwaggerResourceResolver swaggerResourceResolver, SwaggerWelcomeCommon swaggerWelcomeCommon) Instantiates a new Swagger web flux configurer.- Parameters:
swaggerUiConfigProperties- the swagger ui calculated configspringWebProperties- the spring web configspringWebFluxProperties- the spring webflux configswaggerIndexTransformer- the swagger index transformerswaggerResourceResolver- the swagger resource resolverswaggerWelcomeCommon- the swagger welcome common
-
-
Method Details
-
addResourceHandlers
public void addResourceHandlers(org.springframework.web.reactive.config.ResourceHandlerRegistry registry) - Specified by:
addResourceHandlersin interfaceorg.springframework.web.reactive.config.WebFluxConfigurer
-
addSwaggerResourceHandlers
protected void addSwaggerResourceHandlers(org.springframework.web.reactive.config.ResourceHandlerRegistry registry, org.springdoc.ui.AbstractSwaggerConfigurer.SwaggerResourceHandlerConfig... handlerConfigs) Add resource handlers that use the Swagger resource resolver and transformer.- Parameters:
registry- the resource handler registry.handlerConfigs- the swagger handler configs.
-
addSwaggerResourceHandler
protected void addSwaggerResourceHandler(org.springframework.web.reactive.config.ResourceHandlerRegistry registry, org.springdoc.ui.AbstractSwaggerConfigurer.SwaggerResourceHandlerConfig handlerConfig) Add a resource handler that uses the Swagger resource resolver and transformer.- Parameters:
registry- the resource handler registry.handlerConfig- the swagger handler config.
-
getUiRootPath
- Specified by:
getUiRootPathin classorg.springdoc.ui.AbstractSwaggerConfigurer
-
getWebjarsPathPattern
- Specified by:
getWebjarsPathPatternin classorg.springdoc.ui.AbstractSwaggerConfigurer
-
getCache
protected org.springframework.cache.Cache getCache()Gets the Swagger resource chain cache.- Returns:
- the cache.
-