类 Knife4jI18nServiceModelToSwagger2MapperImpl

java.lang.Object
springfox.documentation.swagger2.mappers.ServiceModelToSwagger2Mapper
com.github.xiaoymin.knife4j.spring.common.bean.Knife4jI18nServiceModelToSwagger2MapperImpl

public class Knife4jI18nServiceModelToSwagger2MapperImpl extends springfox.documentation.swagger2.mappers.ServiceModelToSwagger2Mapper
Support i18n with message.properties, Rewrite the ServiceModelToSwagger2Mapper implementation class, and some information is obtained from the i18n configuration information
从以下版本开始:
4.0.0
作者:
xiaoymin@foxmail.com 2022/8/21 09:54
  • 构造器概要

    构造器
    构造器
    说明
    Knife4jI18nServiceModelToSwagger2MapperImpl(org.springframework.context.MessageSource messageSource, Locale locale, springfox.documentation.swagger2.mappers.ModelMapper modelMapper, springfox.documentation.swagger2.mappers.ParameterMapper parameterMapper, springfox.documentation.swagger2.mappers.SecurityMapper securityMapper, springfox.documentation.swagger2.mappers.LicenseMapper licenseMapper, springfox.documentation.swagger2.mappers.VendorExtensionsMapper vendorExtensionsMapper)
     
  • 方法概要

    修饰符和类型
    方法
    说明
    protected io.swagger.models.Contact
    map(springfox.documentation.service.Contact from)
     
    protected io.swagger.models.Info
    mapApiInfo(springfox.documentation.service.ApiInfo from)
     
    io.swagger.models.Swagger
    mapDocumentation(springfox.documentation.service.Documentation from)
     
    protected io.swagger.models.Operation
    mapOperation(springfox.documentation.service.Operation from)
     
    protected io.swagger.models.Tag
    mapTag(springfox.documentation.service.Tag from)
     
    protected List<io.swagger.models.parameters.Parameter>
    parameterListToParameterList(List<springfox.documentation.service.Parameter> list)
     
    protected List<io.swagger.models.Scheme>
     
    protected List<io.swagger.models.Tag>
    tagSetToTagList(Set<springfox.documentation.service.Tag> set)
     

    从类继承的方法 springfox.documentation.swagger2.mappers.ServiceModelToSwagger2Mapper

    mapApiListings, mapAuthorizations, mapResponseMessages, mapSchemes

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

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

    • Knife4jI18nServiceModelToSwagger2MapperImpl

      public Knife4jI18nServiceModelToSwagger2MapperImpl(org.springframework.context.MessageSource messageSource, Locale locale, springfox.documentation.swagger2.mappers.ModelMapper modelMapper, springfox.documentation.swagger2.mappers.ParameterMapper parameterMapper, springfox.documentation.swagger2.mappers.SecurityMapper securityMapper, springfox.documentation.swagger2.mappers.LicenseMapper licenseMapper, springfox.documentation.swagger2.mappers.VendorExtensionsMapper vendorExtensionsMapper)
  • 方法详细资料

    • mapDocumentation

      public io.swagger.models.Swagger mapDocumentation(springfox.documentation.service.Documentation from)
      指定者:
      mapDocumentation 在类中 springfox.documentation.swagger2.mappers.ServiceModelToSwagger2Mapper
    • mapApiInfo

      protected io.swagger.models.Info mapApiInfo(springfox.documentation.service.ApiInfo from)
      指定者:
      mapApiInfo 在类中 springfox.documentation.swagger2.mappers.ServiceModelToSwagger2Mapper
    • map

      protected io.swagger.models.Contact map(springfox.documentation.service.Contact from)
      指定者:
      map 在类中 springfox.documentation.swagger2.mappers.ServiceModelToSwagger2Mapper
    • mapOperation

      protected io.swagger.models.Operation mapOperation(springfox.documentation.service.Operation from)
      指定者:
      mapOperation 在类中 springfox.documentation.swagger2.mappers.ServiceModelToSwagger2Mapper
    • mapTag

      protected io.swagger.models.Tag mapTag(springfox.documentation.service.Tag from)
      指定者:
      mapTag 在类中 springfox.documentation.swagger2.mappers.ServiceModelToSwagger2Mapper
    • tagSetToTagList

      protected List<io.swagger.models.Tag> tagSetToTagList(Set<springfox.documentation.service.Tag> set)
    • stringSetToSchemeList

      protected List<io.swagger.models.Scheme> stringSetToSchemeList(Set<String> set)
    • parameterListToParameterList

      protected List<io.swagger.models.parameters.Parameter> parameterListToParameterList(List<springfox.documentation.service.Parameter> list)