Class OpenApiConfiguration


  • public class OpenApiConfiguration
    extends Object
    • Constructor Detail

      • OpenApiConfiguration

        public OpenApiConfiguration​(ClassLoader applicationClassLoader)
    • Method Detail

      • getModelReader

        public Class<? extends org.eclipse.microprofile.openapi.OASModelReader> getModelReader()
        Returns:
        the OASModelReader class provided by the application.
      • getFilter

        public Class<? extends org.eclipse.microprofile.openapi.OASFilter> getFilter()
        Returns:
        the OASFilter class provided by the application.
      • getScanDisable

        public boolean getScanDisable()
        Returns:
        whether to disable application scanning.
      • getScanLib

        public boolean getScanLib()
        Returns:
        whether to disable packaged libraries scanning.
      • getServers

        public List<String> getServers()
        Returns:
        a list of servers to add to the root document.
      • getPathServerMap

        public Map<String,​Set<String>> getPathServerMap()
        Returns:
        a map of paths to the servers it contains.
      • getOperationServerMap

        public Map<String,​Set<String>> getOperationServerMap()
        Returns:
        a map of operation ids to the servers it contains.
      • getSchemaMap

        public Map<String,​SchemaImpl> getSchemaMap()
        Returns:
        a map of schema objects
      • getValidClasses

        public Set<org.glassfish.hk2.classmodel.reflect.Type> getValidClasses​(Collection<org.glassfish.hk2.classmodel.reflect.Type> types)
        Parameters:
        types - the list of classes to filter.
        Returns:
        a filtered list of classes, using scanClasses, scanExcludeClasses, scanPackages and scanExcludePackages.