Class ApiOperationMatch
java.lang.Object
com.atlassian.oai.validator.model.ApiOperationMatch
After trying to find the best matching
ApiOperation this model contains the information
if the path is defined, the operation is allowed and if so the ApiOperation itself, too.-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic ApiOperationMatchThe searched path is not defined in the API definition.static ApiOperationMatchThe searched path is defined in the API definition, but the HTTP method is not allowed. -
Constructor Summary
ConstructorsConstructorDescriptionApiOperationMatch(ApiOperation apiOperation) If and only if aApiOperationwas found thisApiOperationMatchcontains it. -
Method Summary
Modifier and TypeMethodDescriptionbooleanboolean
-
Field Details
-
MISSING_PATH
The searched path is not defined in the API definition. -
NOT_ALLOWED_OPERATION
The searched path is defined in the API definition, but the HTTP method is not allowed.
-
-
Constructor Details
-
ApiOperationMatch
If and only if aApiOperationwas found thisApiOperationMatchcontains it.- Parameters:
apiOperation- the found, matchingApiOperation
-
-
Method Details
-
isPathFound
public boolean isPathFound()- Returns:
- if a matching path was found
-
isOperationAllowed
public boolean isOperationAllowed()- Returns:
- if the operation is allowed on the matched path
-
getApiOperation
- Returns:
- the
ApiOperationon the matched path and operation
-