Class ResourceParameters

java.lang.Object
io.smallrye.openapi.runtime.scanner.ResourceParameters

public class ResourceParameters extends Object
Result object returned to the annotation scanner. Parameters are split between those that apply at the PathItem level and those that apply at the Operation level, except for form parameters which only apply to the operation. This object includes the class and method path which may have been modified from the values specified by JAX-RS Path or Spring Mapping annotations to support the linkage of matrix parameters.
Author:
Michael Edgar <michael@xlate.io>
  • Constructor Details

    • ResourceParameters

      public ResourceParameters()
  • Method Details

    • parameterComparator

      public static Comparator<org.eclipse.microprofile.openapi.models.parameters.Parameter> parameterComparator(List<org.eclipse.microprofile.openapi.models.parameters.Parameter> preferredOrder)
    • getPathItemParameters

      public List<org.eclipse.microprofile.openapi.models.parameters.Parameter> getPathItemParameters()
    • getOperationPaths

      public List<String> getOperationPaths()
    • getFullOperationPaths

      public List<String> getFullOperationPaths()
    • getOperationParameters

      public List<org.eclipse.microprofile.openapi.models.parameters.Parameter> getOperationParameters()
    • addOperationParameter

      public void addOperationParameter(org.eclipse.microprofile.openapi.models.parameters.Parameter parameter)
    • getFormBodyContent

      public org.eclipse.microprofile.openapi.models.media.Content getFormBodyContent()
    • getFormBodySchema

      public org.eclipse.microprofile.openapi.models.media.Schema getFormBodySchema()
    • getAllParameters

      public List<org.eclipse.microprofile.openapi.models.parameters.Parameter> getAllParameters()
    • setPathItemPaths

      public void setPathItemPaths(List<String> pathItemPaths)
    • setPathItemParameters

      public void setPathItemParameters(List<org.eclipse.microprofile.openapi.models.parameters.Parameter> pathItemParameters)
    • setOperationPaths

      public void setOperationPaths(List<String> operationPaths)
    • setOperationParameters

      public void setOperationParameters(List<org.eclipse.microprofile.openapi.models.parameters.Parameter> operationParameters)
    • setFormBodyContent

      public void setFormBodyContent(org.eclipse.microprofile.openapi.models.media.Content formBodyContent)
    • sort

      public void sort(List<org.eclipse.microprofile.openapi.models.parameters.Parameter> preferredOrder)
    • getPathParameterTemplateNames

      public List<String> getPathParameterTemplateNames()