Package org.springdoc.core.utils
Class SpringDocUtils
java.lang.Object
org.springdoc.core.utils.SpringDocUtils
The type Spring doc utils.
- Author:
- bnasslahsen
-
Method Summary
Modifier and TypeMethodDescriptionaddAnnotationsToIgnore
(Class<?>... classes) Add annotations to ignore spring doc utils.addDeprecatedType
(Class<? extends Annotation> cls) Add deprecated type spring doc utils.addFileType
(Class<?>... classes) Add file type spring doc utils.addFluxWrapperToIgnore
(Class<?> cls) Add flux wrapper to ignore spring doc utils.addHiddenRestControllers
(Class<?>... classes) Add hidden rest controllers spring doc utils.addHiddenRestControllers
(String... classes) Add hidden rest controllers spring doc utils.addJavaTypeToIgnore
(Class<?> clazz) Add java type to ignore spring doc utils.addRequestWrapperToIgnore
(Class<?>... classes) Add request wrapper to ignore spring doc utils.addResponseTypeToIgnore
(Class<?> cls) Add response type to ignore spring doc utils.addResponseWrapperToIgnore
(Class<?> cls) Add response wrapper to ignore spring doc utils.addRestControllers
(Class<?>... classes) Add rest controllers spring doc utils.addSimpleTypePredicateForParameterObject
(Predicate<Class<?>> predicate) Add simple type predicate for parameter object spring doc utils.addSimpleTypesForParameterObject
(Class<?>... classes) Add simple types for parameter object spring doc utils.disableReplacement
(Class source) Disable replacement spring doc utils.static SpringDocUtils
Gets config.static boolean
isValidPath
(String path) Is valid path boolean.removeAnnotationsToIgnore
(Class<?>... classes) Remove annotations to ignore spring doc utils.removeFluxWrapperToIgnore
(Class<?> cls) Remove flux wrapper to ignore spring doc utils.removeFromSchemaClass
(Class<?> clazz) Remove from schema class spring doc utils.removeFromSchemaMap
(Class<?> clazz) Remove from schema map spring doc utils.removeJavaTypeToIgnore
(Class<?> clazz) Remove java type to ignore spring doc utils.removeRequestWrapperToIgnore
(Class<?>... classes) Remove request wrapper to ignore spring doc utils.removeResponseTypeToIgnore
(Class<?> cls) Remove response type to ignore spring doc utils.removeResponseWrapperToIgnore
(Class<?> cls) Remove response wrapper to ignore spring doc utils.removeSimpleTypesForParameterObject
(Class<?>... classes) Remove simple types for parameter object spring doc utils.replaceParameterObjectWithClass
(Class source, Class target) Replace the ParameterObject with the target class.replaceWithClass
(Class source, Class target) Replace with class spring doc utils.replaceWithSchema
(Class source, io.swagger.v3.oas.models.media.Schema target) Replace with schema spring doc utils.setModelAndViewClass
(Class<?> clazz) Sets model and view class.setResponseEntityExceptionHandlerClass
(Class<?> clazz) Sets response entity exception handler class.
-
Method Details
-
getConfig
Gets config.- Returns:
- the config
-
addDeprecatedType
Add deprecated type spring doc utils.- Parameters:
cls
- the cls- Returns:
- the spring doc utils
-
addRestControllers
Add rest controllers spring doc utils.- Parameters:
classes
- the classes- Returns:
- the spring doc utils
-
addHiddenRestControllers
Add hidden rest controllers spring doc utils.- Parameters:
classes
- the classes- Returns:
- the spring doc utils
-
addHiddenRestControllers
Add hidden rest controllers spring doc utils.- Parameters:
classes
- the classes- Returns:
- the spring doc utils
-
replaceWithClass
Replace with class spring doc utils.- Parameters:
source
- the sourcetarget
- the target- Returns:
- the spring doc utils
-
replaceWithSchema
Replace with schema spring doc utils.- Parameters:
source
- the sourcetarget
- the target- Returns:
- the spring doc utils
-
addRequestWrapperToIgnore
Add request wrapper to ignore spring doc utils.- Parameters:
classes
- the classes- Returns:
- the spring doc utils
-
removeRequestWrapperToIgnore
Remove request wrapper to ignore spring doc utils.- Parameters:
classes
- the classes- Returns:
- the spring doc utils
-
addFileType
Add file type spring doc utils.- Parameters:
classes
- the classes- Returns:
- the spring doc utils
-
addResponseWrapperToIgnore
Add response wrapper to ignore spring doc utils.- Parameters:
cls
- the cls- Returns:
- the spring doc utils
-
removeResponseWrapperToIgnore
Remove response wrapper to ignore spring doc utils.- Parameters:
cls
- the cls- Returns:
- the spring doc utils
-
addResponseTypeToIgnore
Add response type to ignore spring doc utils.- Parameters:
cls
- the cls- Returns:
- the spring doc utils
-
removeResponseTypeToIgnore
Remove response type to ignore spring doc utils.- Parameters:
cls
- the cls- Returns:
- the spring doc utils
-
addAnnotationsToIgnore
Add annotations to ignore spring doc utils.- Parameters:
classes
- the classes- Returns:
- the spring doc utils
-
removeAnnotationsToIgnore
Remove annotations to ignore spring doc utils.- Parameters:
classes
- the classes- Returns:
- the spring doc utils
-
addFluxWrapperToIgnore
Add flux wrapper to ignore spring doc utils.- Parameters:
cls
- the cls- Returns:
- the spring doc utils
-
removeFluxWrapperToIgnore
Remove flux wrapper to ignore spring doc utils.- Parameters:
cls
- the cls- Returns:
- the spring doc utils
-
addSimpleTypesForParameterObject
Add simple types for parameter object spring doc utils.- Parameters:
classes
- the classes- Returns:
- the spring doc utils
-
removeSimpleTypesForParameterObject
Remove simple types for parameter object spring doc utils.- Parameters:
classes
- the classes- Returns:
- the spring doc utils
-
addSimpleTypePredicateForParameterObject
Add simple type predicate for parameter object spring doc utils.- Parameters:
predicate
- the predicate- Returns:
- the spring doc utils
-
disableReplacement
Disable replacement spring doc utils.- Parameters:
source
- the source- Returns:
- the spring doc utils
-
replaceParameterObjectWithClass
Replace the ParameterObject with the target class.- Parameters:
source
- the sourcetarget
- the target- Returns:
- the spring doc utils
-
setResponseEntityExceptionHandlerClass
Sets response entity exception handler class.- Parameters:
clazz
- the clazz- Returns:
- the response entity exception handler class
-
setModelAndViewClass
Sets model and view class.- Parameters:
clazz
- the clazz- Returns:
- the model and view class
-
removeFromSchemaMap
Remove from schema map spring doc utils.- Parameters:
clazz
- the clazz- Returns:
- the spring doc utils
-
removeFromSchemaClass
Remove from schema class spring doc utils.- Parameters:
clazz
- the clazz- Returns:
- the spring doc utils
-
addJavaTypeToIgnore
Add java type to ignore spring doc utils.- Parameters:
clazz
- the clazz- Returns:
- the spring doc utils
-
removeJavaTypeToIgnore
Remove java type to ignore spring doc utils.- Parameters:
clazz
- the clazz- Returns:
- the spring doc utils
-
isValidPath
Is valid path boolean.- Parameters:
path
- the path- Returns:
- the boolean
-