Class 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:
    serverObject
    • Method Detail

      • 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​(org.jboss.jandex.AnnotationTarget target)