Record Class OpenapiContract.Resolution.Found
java.lang.Object
java.lang.Record
ch.nexsol.gateway.validation.OpenapiContract.Resolution.Found
- Record Components:
template- the path template that matchedoperation- the resolved operationparameters- the parameters of the operation, merged with those of the pathpathVariables- the values the path template captured
- All Implemented Interfaces:
OpenapiContract.Resolution
- Enclosing interface:
OpenapiContract.Resolution
public static record OpenapiContract.Resolution.Found(String template, io.swagger.v3.oas.models.Operation operation, List<io.swagger.v3.oas.models.parameters.Parameter> parameters, Map<String,String> pathVariables)
extends Record
implements OpenapiContract.Resolution
The contract declares the operation.
-
Nested Class Summary
Nested classes/interfaces inherited from interface OpenapiContract.Resolution
OpenapiContract.Resolution.Found, OpenapiContract.Resolution.MethodNotAllowed, OpenapiContract.Resolution.PathNotFound -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.io.swagger.v3.oas.models.OperationReturns the value of theoperationrecord component.List<io.swagger.v3.oas.models.parameters.Parameter> Returns the value of theparametersrecord component.Returns the value of thepathVariablesrecord component.template()Returns the value of thetemplaterecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
Found
public Found(String template, io.swagger.v3.oas.models.Operation operation, List<io.swagger.v3.oas.models.parameters.Parameter> parameters, Map<String, String> pathVariables) Creates an instance of aFoundrecord class.- Parameters:
template- the value for thetemplaterecord componentoperation- the value for theoperationrecord componentparameters- the value for theparametersrecord componentpathVariables- the value for thepathVariablesrecord component
-
-
Method Details
-
toString
-
hashCode
-
equals
Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. All components in this record class are compared withObjects::equals(Object,Object). -
template
-
operation
-
parameters
Returns the value of theparametersrecord component.- Returns:
- the value of the
parametersrecord component
-
pathVariables
Returns the value of thepathVariablesrecord component.- Returns:
- the value of the
pathVariablesrecord component
-