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 Details

    • LOGGER

      protected static final org.slf4j.Logger LOGGER
      The constant LOGGER.
    • applicationContext

      protected org.springframework.context.ApplicationContext applicationContext
      The Application context.
    • handlerMethods

      protected Map handlerMethods
      The Handler methods.
    • springDocVersionStrategyMap

      protected final Map<SpringDocApiVersionType,SpringDocVersionStrategy> springDocVersionStrategyMap
      The Spring doc version strategy map.
  • Constructor Details

    • SpringWebProvider

      public SpringWebProvider()
  • Method Details

    • getHandlerMethods

      public abstract Map getHandlerMethods()
      Gets handler methods.
      Returns:
      the handler methods
    • findPathPrefix

      public abstract String findPathPrefix(SpringDocConfigProperties springDocConfigProperties)
      Find path prefix string.
      Parameters:
      springDocConfigProperties - the spring doc config properties
      Returns:
      the string
    • getActivePatterns

      public abstract Set<String> getActivePatterns(Object requestMappingInfo)
      Gets active patterns.
      Parameters:
      requestMappingInfo - the request mapping info
      Returns:
      the active patterns
    • getSpringDocVersionStrategy

      public SpringDocVersionStrategy getSpringDocVersionStrategy(String version, String[] params)
      Gets spring doc version strategy.
      Parameters:
      version - the version
      params - the params
      Returns:
      the spring doc version strategy
    • setApplicationContext

      public void setApplicationContext(org.springframework.context.ApplicationContext applicationContext) throws org.springframework.beans.BeansException
      Specified by:
      setApplicationContext in interface org.springframework.context.ApplicationContextAware
      Throws:
      org.springframework.beans.BeansException