Package org.springdoc.core.providers
Class SpringWebProvider
java.lang.Object
org.springdoc.core.providers.SpringWebProvider
- All Implemented Interfaces:
org.springframework.beans.factory.Aware,org.springframework.context.ApplicationContextAware
public abstract class SpringWebProvider
extends Object
implements org.springframework.context.ApplicationContextAware
The type Spring web provider.
- Author:
- bnasslahsen
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected org.springframework.context.ApplicationContextThe Application context.protected MapThe Handler methods.protected static final org.slf4j.LoggerThe constant LOGGER.protected final Map<SpringDocApiVersionType, SpringDocVersionStrategy> The Spring doc version strategy map. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionabstract StringfindPathPrefix(SpringDocConfigProperties springDocConfigProperties) Find path prefix string.getActivePatterns(Object requestMappingInfo) Gets active patterns.abstract MapGets handler methods.getSpringDocVersionStrategy(String version, String[] params) Gets spring doc version strategy.voidsetApplicationContext(org.springframework.context.ApplicationContext applicationContext)
-
Field Details
-
LOGGER
protected static final org.slf4j.Logger LOGGERThe constant LOGGER. -
applicationContext
protected org.springframework.context.ApplicationContext applicationContextThe Application context. -
handlerMethods
The Handler methods. -
springDocVersionStrategyMap
The Spring doc version strategy map.
-
-
Constructor Details
-
SpringWebProvider
public SpringWebProvider()
-
-
Method Details
-
getHandlerMethods
Gets handler methods.- Returns:
- the handler methods
-
findPathPrefix
Find path prefix string.- Parameters:
springDocConfigProperties- the spring doc config properties- Returns:
- the string
-
getActivePatterns
Gets active patterns.- Parameters:
requestMappingInfo- the request mapping info- Returns:
- the active patterns
-
getSpringDocVersionStrategy
Gets spring doc version strategy.- Parameters:
version- the versionparams- the params- Returns:
- the spring doc version strategy
-
setApplicationContext
public void setApplicationContext(org.springframework.context.ApplicationContext applicationContext) throws org.springframework.beans.BeansException - Specified by:
setApplicationContextin interfaceorg.springframework.context.ApplicationContextAware- Throws:
org.springframework.beans.BeansException
-