Class ReaderUtils


  • public class ReaderUtils
    extends Object
    • Constructor Detail

      • ReaderUtils

        public ReaderUtils()
    • Method Detail

      • collectConstructorParameters

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

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

        public static List<Parameter> collectFieldParameters​(Class<?> cls,
                                                             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
      • 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)