Class ServerReader

java.lang.Object
io.smallrye.openapi.runtime.io.server.ServerReader

public class ServerReader extends Object
Reading the Server annotation and json node
Author:
Phillip Kruger (phillip.kruger@redhat.com), Eric Wittmann (eric.wittmann@gmail.com)
See Also:
  • Method Summary

    Modifier and Type
    Method
    Description
    static List<org.jboss.jandex.AnnotationInstance>
    getServerAnnotations(AnnotationScannerContext context, org.jboss.jandex.AnnotationTarget target)
     
    static org.eclipse.microprofile.openapi.models.servers.Server
    readServer(com.fasterxml.jackson.databind.JsonNode node)
    Reads a list of Server OpenAPI nodes.
    static org.eclipse.microprofile.openapi.models.servers.Server
    readServer(AnnotationScannerContext context, org.jboss.jandex.AnnotationInstance annotationInstance)
    Reads a single Server annotation.
    static org.eclipse.microprofile.openapi.models.servers.Server
    readServer(AnnotationScannerContext context, org.jboss.jandex.AnnotationValue annotationValue)
    Reads a single Server annotation.
    static Optional<List<org.eclipse.microprofile.openapi.models.servers.Server>>
    readServers(com.fasterxml.jackson.databind.JsonNode node)
    Reads a list of Server OpenAPI nodes.
    static Optional<List<org.eclipse.microprofile.openapi.models.servers.Server>>
    readServers(AnnotationScannerContext context, org.jboss.jandex.AnnotationValue annotationValue)
    Reads any Server annotations.The annotation value is an array of Server annotations.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Method Details

    • readServers

      public static Optional<List<org.eclipse.microprofile.openapi.models.servers.Server>> readServers(AnnotationScannerContext context, org.jboss.jandex.AnnotationValue annotationValue)
      Reads any Server annotations.The annotation value is an array of Server annotations.
      Parameters:
      annotationValue - an Array of @Server annotations
      Returns:
      a List of Server models
    • readServers

      public static Optional<List<org.eclipse.microprofile.openapi.models.servers.Server>> readServers(com.fasterxml.jackson.databind.JsonNode node)
      Reads a list of Server OpenAPI nodes.
      Parameters:
      node - the json array
      Returns:
      a List of Server models
    • readServer

      public static org.eclipse.microprofile.openapi.models.servers.Server readServer(AnnotationScannerContext context, org.jboss.jandex.AnnotationValue annotationValue)
      Reads a single Server annotation.
      Parameters:
      annotationValue - the @Server annotation
      Returns:
      a Server model
    • readServer

      public static org.eclipse.microprofile.openapi.models.servers.Server readServer(AnnotationScannerContext context, org.jboss.jandex.AnnotationInstance annotationInstance)
      Reads a single Server annotation.
      Parameters:
      annotationInstance - the @Server annotations instance
      Returns:
      Server model
    • readServer

      public static org.eclipse.microprofile.openapi.models.servers.Server readServer(com.fasterxml.jackson.databind.JsonNode node)
      Reads a list of Server OpenAPI nodes.
      Parameters:
      node - the json array
      Returns:
      a List of Server models
    • getServerAnnotations

      public static List<org.jboss.jandex.AnnotationInstance> getServerAnnotations(AnnotationScannerContext context, org.jboss.jandex.AnnotationTarget target)