类 OpenApiHandler

java.lang.Object
org.springdoc.core.service.OpenAPIService
top.continew.starter.apidoc.handler.OpenApiHandler
所有已实现的接口:
org.springframework.beans.factory.Aware, org.springframework.context.ApplicationContextAware

public class OpenApiHandler extends org.springdoc.core.service.OpenAPIService
自定义 OpenApi 处理器(对源码功能进行修改,增强使用)
从以下版本开始:
2.4.0
作者:
echo
  • 构造器概要

    构造器
    构造器
    说明
    OpenApiHandler(Optional<io.swagger.v3.oas.models.OpenAPI> openAPI, org.springdoc.core.service.SecurityService securityParser, org.springdoc.core.properties.SpringDocConfigProperties springDocConfigProperties, org.springdoc.core.utils.PropertyResolverUtils propertyResolverUtils, Optional<List<org.springdoc.core.customizers.OpenApiBuilderCustomizer>> openApiBuilderCustomizers, Optional<List<org.springdoc.core.customizers.ServerBaseUrlCustomizer>> serverBaseUrlCustomizers, Optional<org.springdoc.core.providers.JavadocProvider> javadocProvider)
    Instantiates a new Open api builder.
  • 方法概要

    修饰符和类型
    方法
    说明
    io.swagger.v3.oas.models.Operation
    buildTags(org.springframework.web.method.HandlerMethod handlerMethod, io.swagger.v3.oas.models.Operation operation, io.swagger.v3.oas.models.OpenAPI openAPI, Locale locale)
     
    static <E, T> Set<T>
    toSet(Collection<E> collection, Function<E,T> function)
    将collection转化为Set集合,但是两者的泛型不同
    Collection<E> ------> Set<T>

    从类继承的方法 org.springdoc.core.service.OpenAPIService

    addMappings, addTag, build, buildTagsFromClass, getCachedOpenAPI, getContext, getControllerAdviceMap, getMappingsMap, getSecurityParser, isAutoTagClasses, resolveProperties, setApplicationContext, setCachedOpenAPI, setServerBaseUrl, setServersPresent, splitCamelCase, updateServers

    从类继承的方法 java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • 构造器详细资料

    • OpenApiHandler

      public OpenApiHandler(Optional<io.swagger.v3.oas.models.OpenAPI> openAPI, org.springdoc.core.service.SecurityService securityParser, org.springdoc.core.properties.SpringDocConfigProperties springDocConfigProperties, org.springdoc.core.utils.PropertyResolverUtils propertyResolverUtils, Optional<List<org.springdoc.core.customizers.OpenApiBuilderCustomizer>> openApiBuilderCustomizers, Optional<List<org.springdoc.core.customizers.ServerBaseUrlCustomizer>> serverBaseUrlCustomizers, Optional<org.springdoc.core.providers.JavadocProvider> javadocProvider)
      Instantiates a new Open api builder.
      参数:
      openAPI - the open api
      securityParser - the security parser
      springDocConfigProperties - the spring doc config properties
      propertyResolverUtils - the property resolver utils
      openApiBuilderCustomizers - the open api builder customisers
      serverBaseUrlCustomizers - the server base url customizers
      javadocProvider - the javadoc provider
  • 方法详细资料

    • buildTags

      public io.swagger.v3.oas.models.Operation buildTags(org.springframework.web.method.HandlerMethod handlerMethod, io.swagger.v3.oas.models.Operation operation, io.swagger.v3.oas.models.OpenAPI openAPI, Locale locale)
      覆盖:
      buildTags 在类中 org.springdoc.core.service.OpenAPIService
    • toSet

      public static <E, T> Set<T> toSet(Collection<E> collection, Function<E,T> function)
      将collection转化为Set集合,但是两者的泛型不同
      Collection<E> ------> Set<T>
      类型参数:
      E - collection中的泛型
      T - Set中的泛型
      参数:
      collection - 需要转化的集合
      function - collection中的泛型转化为set泛型的lambda表达式
      返回:
      转化后的Set