Class ReaderUtils


  • public class ReaderUtils
    extends Object
    • Constructor Detail

      • ReaderUtils

        public ReaderUtils()
    • Method Detail

      • collectConstructorParameters

        public static List<io.swagger.v3.oas.models.parameters.Parameter> collectConstructorParameters​(Class<?> cls,
                                                                                                       io.swagger.v3.oas.models.Components components,
                                                                                                       javax.ws.rs.Consumes classConsumes,
                                                                                                       com.fasterxml.jackson.annotation.JsonView jsonViewAnnotation)
      • collectConstructorParameters

        public static List<io.swagger.v3.oas.models.parameters.Parameter> collectConstructorParameters​(Class<?> cls,
                                                                                                       io.swagger.v3.oas.models.Components components,
                                                                                                       javax.ws.rs.Consumes classConsumes,
                                                                                                       com.fasterxml.jackson.annotation.JsonView jsonViewAnnotation,
                                                                                                       io.swagger.v3.oas.models.media.Schema.SchemaResolution schemaResolution)
      • collectConstructorParameters

        public static List<io.swagger.v3.oas.models.parameters.Parameter> collectConstructorParameters​(Class<?> cls,
                                                                                                       io.swagger.v3.oas.models.Components components,
                                                                                                       javax.ws.rs.Consumes classConsumes,
                                                                                                       com.fasterxml.jackson.annotation.JsonView jsonViewAnnotation,
                                                                                                       io.swagger.v3.oas.models.media.Schema.SchemaResolution schemaResolution,
                                                                                                       boolean openapi31)
        Collects constructor-level parameters from class.
        Parameters:
        cls - is a class for collecting
        components -
        Returns:
        the collection of supported parameters
      • collectFieldParameters

        public static List<io.swagger.v3.oas.models.parameters.Parameter> collectFieldParameters​(Class<?> cls,
                                                                                                 io.swagger.v3.oas.models.Components components,
                                                                                                 javax.ws.rs.Consumes classConsumes,
                                                                                                 com.fasterxml.jackson.annotation.JsonView jsonViewAnnotation)
        Collects field-level parameters from class.
        Parameters:
        cls - is a class for collecting
        components -
        Returns:
        the collection of supported parameters
      • isIgnored

        public static boolean isIgnored​(String path,
                                        io.swagger.v3.oas.integration.api.OpenAPIConfiguration config)
      • getPath

        public static String getPath​(javax.ws.rs.Path classLevelPath,
                                     javax.ws.rs.Path methodLevelPath,
                                     String parentPath,
                                     boolean isSubresource)
      • getHttpMethodFromCustomAnnotations

        public static String getHttpMethodFromCustomAnnotations​(Method method)