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 Summary
Constructors Constructor Description ResourceParameters()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddOperationParameter(org.eclipse.microprofile.openapi.models.parameters.Parameter parameter)List<org.eclipse.microprofile.openapi.models.parameters.Parameter>getAllParameters()org.eclipse.microprofile.openapi.models.media.ContentgetFormBodyContent()org.eclipse.microprofile.openapi.models.media.SchemagetFormBodySchema()StringgetFullOperationPath()List<org.eclipse.microprofile.openapi.models.parameters.Parameter>getOperationParameters()StringgetOperationPath()List<org.eclipse.microprofile.openapi.models.parameters.Parameter>getPathItemParameters()List<String>getPathParameterTemplateNames()static Comparator<org.eclipse.microprofile.openapi.models.parameters.Parameter>parameterComparator(List<org.eclipse.microprofile.openapi.models.parameters.Parameter> preferredOrder)voidsetFormBodyContent(org.eclipse.microprofile.openapi.models.media.Content formBodyContent)voidsetOperationParameters(List<org.eclipse.microprofile.openapi.models.parameters.Parameter> operationParameters)voidsetOperationPath(String operationPath)voidsetPathItemParameters(List<org.eclipse.microprofile.openapi.models.parameters.Parameter> pathItemParameters)voidsetPathItemPath(String pathItemPath)voidsort(List<org.eclipse.microprofile.openapi.models.parameters.Parameter> preferredOrder)
-
-
-
Method Detail
-
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()
-
getOperationPath
public String getOperationPath()
-
getFullOperationPath
public String getFullOperationPath()
-
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()
-
setPathItemPath
public void setPathItemPath(String pathItemPath)
-
setPathItemParameters
public void setPathItemParameters(List<org.eclipse.microprofile.openapi.models.parameters.Parameter> pathItemParameters)
-
setOperationPath
public void setOperationPath(String operationPath)
-
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)
-
-