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 ([email protected]), Eric Wittmann ([email protected])
- See Also:
- serverObject
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static List<org.jboss.jandex.AnnotationInstance>
getServerAnnotations(org.jboss.jandex.AnnotationTarget target)
static org.eclipse.microprofile.openapi.models.servers.Server
readServer(com.fasterxml.jackson.databind.JsonNode node)
Reads a list ofServer
OpenAPI nodes.static org.eclipse.microprofile.openapi.models.servers.Server
readServer(org.jboss.jandex.AnnotationInstance annotationInstance)
Reads a single Server annotation.static org.eclipse.microprofile.openapi.models.servers.Server
readServer(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 ofServer
OpenAPI nodes.static Optional<List<org.eclipse.microprofile.openapi.models.servers.Server>>
readServers(org.jboss.jandex.AnnotationValue annotationValue)
Reads any Server annotations.The annotation value is an array of Server annotations.
-
-
-
Method Detail
-
readServers
public static Optional<List<org.eclipse.microprofile.openapi.models.servers.Server>> readServers(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 ofServer
OpenAPI nodes.- Parameters:
node
- the json array- Returns:
- a List of Server models
-
readServer
public static org.eclipse.microprofile.openapi.models.servers.Server readServer(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(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 ofServer
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)
-
-