Class VertxParameterProcessor


  • public class VertxParameterProcessor
    extends AbstractParameterProcessor
    Copied from JAX-RS. Still need clean up
    Author:
    Phillip Kruger (phillip.kruger@redhat.com)
    • Method Detail

      • process

        public static ResourceParameters process​(AnnotationScannerContext context,
                                                 String contextPath,
                                                 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. First, class-level parameters are processed and saved in the ResourceParameters. Second, method-level parameters are processed. Form parameters are only applicable to the method-level in this component.
        Parameters:
        context - the AnnotationScannerContext
        contextPath - context path for the resource class and method
        resourceClass - the class info
        resourceMethod - the Vert.x resource method, annotated with one of the Vert.x HTTP annotations
        reader - callback method for a function producing Parameter from a Parameter
        extensions - scanner extensions
        Returns:
        scanned parameters and modified path contained in a ResourceParameters object
      • readAnnotatedType

        protected void readAnnotatedType​(org.jboss.jandex.AnnotationInstance annotation,
                                         org.jboss.jandex.AnnotationInstance beanParamAnnotation,
                                         boolean overriddenParametersOnly)
        Specified by:
        readAnnotatedType in class AbstractParameterProcessor