Record Class OpenapiContract.Resolution.MethodNotAllowed
java.lang.Object
java.lang.Record
ch.nexsol.gateway.validation.OpenapiContract.Resolution.MethodNotAllowed
- Record Components:
template- the path template that matchedallowedMethods- the methods the contract declares for that path
- All Implemented Interfaces:
OpenapiContract.Resolution
- Enclosing interface:
OpenapiContract.Resolution
public static record OpenapiContract.Resolution.MethodNotAllowed(String template, Set<String> allowedMethods)
extends Record
implements OpenapiContract.Resolution
The contract declares the path but not for this method.
-
Nested Class Summary
Nested classes/interfaces inherited from interface OpenapiContract.Resolution
OpenapiContract.Resolution.Found, OpenapiContract.Resolution.MethodNotAllowed, OpenapiContract.Resolution.PathNotFound -
Constructor Summary
ConstructorsConstructorDescriptionMethodNotAllowed(String template, Set<String> allowedMethods) Creates an instance of aMethodNotAllowedrecord class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of theallowedMethodsrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.template()Returns the value of thetemplaterecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
MethodNotAllowed
Creates an instance of aMethodNotAllowedrecord class.- Parameters:
template- the value for thetemplaterecord componentallowedMethods- the value for theallowedMethodsrecord 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
-
allowedMethods
Returns the value of theallowedMethodsrecord component.- Returns:
- the value of the
allowedMethodsrecord component
-