Class ServerReader
java.lang.Object
io.smallrye.openapi.runtime.io.server.ServerReader
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 TypeMethodDescriptionstatic List<org.jboss.jandex.AnnotationInstance>getServerAnnotations(AnnotationScannerContext context, org.jboss.jandex.AnnotationTarget target) static org.eclipse.microprofile.openapi.models.servers.ServerreadServer(com.fasterxml.jackson.databind.JsonNode node) Reads a list ofServerOpenAPI nodes.static org.eclipse.microprofile.openapi.models.servers.ServerreadServer(AnnotationScannerContext context, org.jboss.jandex.AnnotationInstance annotationInstance) Reads a single Server annotation.static org.eclipse.microprofile.openapi.models.servers.ServerreadServer(AnnotationScannerContext context, org.jboss.jandex.AnnotationValue annotationValue) Reads a single Server annotation.readServers(com.fasterxml.jackson.databind.JsonNode node) Reads a list ofServerOpenAPI nodes.readServers(AnnotationScannerContext context, org.jboss.jandex.AnnotationValue annotationValue) Reads any Server annotations.The annotation value is an array of Server annotations.
-
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 ofServerOpenAPI 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 ofServerOpenAPI 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)
-