Class VertxParameterProcessor


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

    • 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
    • getTemplateParameterPattern

      protected Pattern getTemplateParameterPattern()
      Specified by:
      getTemplateParameterPattern in class AbstractParameterProcessor
    • getMatrixParameter

      protected FrameworkParameter getMatrixParameter()
      Specified by:
      getMatrixParameter in class AbstractParameterProcessor
    • readAnnotatedType

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

      protected String pathOf(org.jboss.jandex.AnnotationTarget target)
      Specified by:
      pathOf in class AbstractParameterProcessor
    • isSubResourceLocator

      protected boolean isSubResourceLocator(org.jboss.jandex.MethodInfo method)
      Specified by:
      isSubResourceLocator in class AbstractParameterProcessor
    • isResourceMethod

      protected boolean isResourceMethod(org.jboss.jandex.MethodInfo method)
      Specified by:
      isResourceMethod in class AbstractParameterProcessor
    • isParameter

      protected boolean isParameter(org.jboss.jandex.DotName annotationName)
      Specified by:
      isParameter in class AbstractParameterProcessor