Class HeaderReader

java.lang.Object
io.smallrye.openapi.runtime.io.header.HeaderReader

public class HeaderReader extends Object
Reading the Header from annotations or json
Author:
Phillip Kruger (phillip.kruger@redhat.com), Eric Wittmann (eric.wittmann@gmail.com)
See Also:
  • Method Details

    • readHeaders

      public static Map<String,org.eclipse.microprofile.openapi.models.headers.Header> readHeaders(AnnotationScannerContext context, org.jboss.jandex.AnnotationValue annotationValue)
      Reads a map of Header annotations.
      Parameters:
      context - the scanning context
      annotationValue - map of @Header annotations
      Returns:
      Map of Header models
    • readHeaders

      public static Map<String,org.eclipse.microprofile.openapi.models.headers.Header> readHeaders(com.fasterxml.jackson.databind.JsonNode node)
      Reads the Header OpenAPI nodes.
      Parameters:
      node - the json node
      Returns:
      Map of Header models