public class ResponseReader extends Object
| Modifier and Type | Method and Description |
|---|---|
static org.jboss.jandex.AnnotationInstance |
getResponseAnnotation(org.jboss.jandex.MethodInfo method) |
static List<org.jboss.jandex.AnnotationInstance> |
getResponseAnnotations(org.jboss.jandex.AnnotationTarget target) |
static String |
getResponseName(AnnotationScannerContext context,
org.jboss.jandex.AnnotationInstance annotation) |
static org.jboss.jandex.AnnotationInstance |
getResponsesAnnotation(org.jboss.jandex.MethodInfo method) |
static org.jboss.jandex.AnnotationInstance |
getResponseSchemaAnnotation(org.jboss.jandex.MethodInfo method) |
static boolean |
hasResponseCodeValue(org.jboss.jandex.MethodInfo method) |
static org.eclipse.microprofile.openapi.models.responses.APIResponse |
readResponse(AnnotationScannerContext context,
org.jboss.jandex.AnnotationInstance annotationInstance)
Reads a APIResponse annotation into a model.
|
static org.eclipse.microprofile.openapi.models.responses.APIResponses |
readResponses(AnnotationScannerContext context,
org.jboss.jandex.AnnotationValue annotationValue)
Reads an array of APIResponse annotations into an
APIResponses model. |
static org.eclipse.microprofile.openapi.models.responses.APIResponses |
readResponses(com.fasterxml.jackson.databind.JsonNode node)
Reads a
APIResponses OpenAPI node. |
static org.eclipse.microprofile.openapi.models.responses.APIResponse |
readResponseSchema(AnnotationScannerContext context,
org.jboss.jandex.AnnotationInstance annotation)
Reads a APIResponseSchema annotation into a model.
|
static Map<String,org.eclipse.microprofile.openapi.models.responses.APIResponse> |
readResponsesMap(AnnotationScannerContext context,
org.jboss.jandex.AnnotationValue annotationValue)
Reads a map of APIResponse annotations.
|
static Map<String,org.eclipse.microprofile.openapi.models.responses.APIResponse> |
readResponsesMap(com.fasterxml.jackson.databind.JsonNode node)
Reads the
APIResponse OpenAPI nodes. |
public static org.eclipse.microprofile.openapi.models.responses.APIResponses readResponses(AnnotationScannerContext context, org.jboss.jandex.AnnotationValue annotationValue)
APIResponses model.context - the scanning contextannotationValue - @APIResponse annotationpublic static org.eclipse.microprofile.openapi.models.responses.APIResponses readResponses(com.fasterxml.jackson.databind.JsonNode node)
APIResponses OpenAPI node.node - json objectpublic static Map<String,org.eclipse.microprofile.openapi.models.responses.APIResponse> readResponsesMap(AnnotationScannerContext context, org.jboss.jandex.AnnotationValue annotationValue)
context - the scanning contextannotationValue - map of @APIResponse annotationspublic static Map<String,org.eclipse.microprofile.openapi.models.responses.APIResponse> readResponsesMap(com.fasterxml.jackson.databind.JsonNode node)
APIResponse OpenAPI nodes.node - map of json objectspublic static org.eclipse.microprofile.openapi.models.responses.APIResponse readResponse(AnnotationScannerContext context, org.jboss.jandex.AnnotationInstance annotationInstance)
context - the scanning contextannotationInstance - @APIResponse annotationpublic static org.eclipse.microprofile.openapi.models.responses.APIResponse readResponseSchema(AnnotationScannerContext context, org.jboss.jandex.AnnotationInstance annotation)
context - the scanning contextannotation - @APIResponseSchema annotationpublic static List<org.jboss.jandex.AnnotationInstance> getResponseAnnotations(org.jboss.jandex.AnnotationTarget target)
public static boolean hasResponseCodeValue(org.jboss.jandex.MethodInfo method)
public static org.jboss.jandex.AnnotationInstance getResponseAnnotation(org.jboss.jandex.MethodInfo method)
public static org.jboss.jandex.AnnotationInstance getResponsesAnnotation(org.jboss.jandex.MethodInfo method)
public static org.jboss.jandex.AnnotationInstance getResponseSchemaAnnotation(org.jboss.jandex.MethodInfo method)
public static String getResponseName(AnnotationScannerContext context, org.jboss.jandex.AnnotationInstance annotation)
Copyright © 2018–2021. All rights reserved.