public class JaxRsParameterProcessor extends AbstractParameterProcessor
AbstractParameterProcessor.ParameterContext, AbstractParameterProcessor.ParameterContextKeycl, extensions, formMediaType, formParams, index, matrixParams, params, readerFunction, scannerContext| Modifier and Type | Method and Description |
|---|---|
protected void |
addEncoding(Map<String,org.eclipse.microprofile.openapi.models.media.Encoding> encodings,
String paramName,
org.jboss.jandex.AnnotationTarget paramTarget) |
protected org.jboss.jandex.DotName |
getDefaultAnnotationName() |
protected String |
getDefaultAnnotationProperty() |
protected String |
getDefaultFormMediaType() |
protected FrameworkParameter |
getMatrixParameter() |
protected Pattern |
getTemplateParameterPattern() |
protected AbstractParameterProcessor.ParameterContext |
getUnannotatedPathParameter(org.jboss.jandex.MethodInfo resourceMethod,
String name) |
protected boolean |
isParameter(org.jboss.jandex.DotName annotationName) |
protected boolean |
isResourceMethod(org.jboss.jandex.MethodInfo method) |
protected boolean |
isSubResourceLocator(org.jboss.jandex.MethodInfo method) |
protected String |
pathOf(org.jboss.jandex.AnnotationTarget target) |
static ResourceParameters |
process(AnnotationScannerContext context,
org.jboss.jandex.ClassInfo resourceClass,
org.jboss.jandex.MethodInfo resourceMethod,
Function<org.jboss.jandex.AnnotationInstance,org.eclipse.microprofile.openapi.models.parameters.Parameter> reader,
List<AnnotationScannerExtension> extensions)
Process parameter annotations for the given class and method.This method operates
in two phases.
|
protected void |
processPathParameters(org.jboss.jandex.ClassInfo resourceClass,
org.jboss.jandex.MethodInfo resourceMethod,
ResourceParameters parameters) |
protected void |
readAnnotatedType(org.jboss.jandex.AnnotationInstance annotation,
org.jboss.jandex.AnnotationInstance beanParamAnnotation,
boolean overriddenParametersOnly) |
fullPathOf, generatePath, getDefaultValue, getFormBodyContent, getParameters, getType, hasParameters, isIgnoredParameter, isReadableParameterAnnotation, lastPathSegmentOf, paramName, primitiveToObject, process, processFinalize, processOperationParameters, readAnnotatedType, readParameter, readParameterAnnotation, readParameterAnnotation, readParameters, readParametersInherited, reset, resolveType, setMediaType, setSchemaProperties, styleOfpublic static ResourceParameters process(AnnotationScannerContext context, org.jboss.jandex.ClassInfo resourceClass, org.jboss.jandex.MethodInfo resourceMethod, Function<org.jboss.jandex.AnnotationInstance,org.eclipse.microprofile.openapi.models.parameters.Parameter> reader, List<AnnotationScannerExtension> extensions)
ResourceParameters. Second, method-level parameters are processed. Form parameters
are only applicable to the method-level in this component.context - the AnnotationScannerContextresourceClass - the class inforesourceMethod - the JAX-RS resource method, annotated with one of the
JAX-RS HTTP annotationsreader - callback method for a function producing Parameter from a
Parameterextensions - scanner extensionsResourceParameters
objectprotected void processPathParameters(org.jboss.jandex.ClassInfo resourceClass,
org.jboss.jandex.MethodInfo resourceMethod,
ResourceParameters parameters)
processPathParameters in class AbstractParameterProcessorprotected Pattern getTemplateParameterPattern()
getTemplateParameterPattern in class AbstractParameterProcessorprotected FrameworkParameter getMatrixParameter()
getMatrixParameter in class AbstractParameterProcessorprotected AbstractParameterProcessor.ParameterContext getUnannotatedPathParameter(org.jboss.jandex.MethodInfo resourceMethod, String name)
getUnannotatedPathParameter in class AbstractParameterProcessorprotected String getDefaultFormMediaType()
getDefaultFormMediaType in class AbstractParameterProcessorprotected void addEncoding(Map<String,org.eclipse.microprofile.openapi.models.media.Encoding> encodings, String paramName, org.jboss.jandex.AnnotationTarget paramTarget)
addEncoding in class AbstractParameterProcessorprotected void readAnnotatedType(org.jboss.jandex.AnnotationInstance annotation,
org.jboss.jandex.AnnotationInstance beanParamAnnotation,
boolean overriddenParametersOnly)
readAnnotatedType in class AbstractParameterProcessorprotected org.jboss.jandex.DotName getDefaultAnnotationName()
getDefaultAnnotationName in class AbstractParameterProcessorprotected String getDefaultAnnotationProperty()
getDefaultAnnotationProperty in class AbstractParameterProcessorprotected String pathOf(org.jboss.jandex.AnnotationTarget target)
pathOf in class AbstractParameterProcessorprotected boolean isSubResourceLocator(org.jboss.jandex.MethodInfo method)
isSubResourceLocator in class AbstractParameterProcessorprotected boolean isResourceMethod(org.jboss.jandex.MethodInfo method)
isResourceMethod in class AbstractParameterProcessorprotected boolean isParameter(org.jboss.jandex.DotName annotationName)
isParameter in class AbstractParameterProcessorCopyright © 2018–2021. All rights reserved.