Record Class BasicResponse
java.lang.Object
java.lang.Record
com.kingsrook.qqq.middleware.javalin.specs.BasicResponse
-
Constructor Summary
ConstructorsConstructorDescriptionBasicResponse
(io.javalin.http.HttpStatus status, String description, String schemaRefName) ConstructorBasicResponse
(io.javalin.http.HttpStatus status, String description, String schemaRefName, Map<String, Example> examples) ConstructorBasicResponse
(String contentType, io.javalin.http.HttpStatus status, String description, String schemaRefName, Map<String, Example> examples) Creates an instance of aBasicResponse
record class.BasicResponse
(String description, String schemaRefName) ConstructorConstructor -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of thecontentType
record component.Returns the value of thedescription
record component.final boolean
Indicates whether some other object is "equal to" this one.examples()
Returns the value of theexamples
record component.final int
hashCode()
Returns a hash code value for this object.Returns the value of theschemaRefName
record component.io.javalin.http.HttpStatus
status()
Returns the value of thestatus
record component.final String
toString()
Returns a string representation of this record class.
-
Constructor Details
-
BasicResponse
-
BasicResponse
-
BasicResponse
-
BasicResponse
-
BasicResponse
public BasicResponse(String contentType, io.javalin.http.HttpStatus status, String description, String schemaRefName, Map<String, Example> examples) Creates an instance of aBasicResponse
record class.- Parameters:
contentType
- the value for thecontentType
record componentstatus
- the value for thestatus
record componentdescription
- the value for thedescription
record componentschemaRefName
- the value for theschemaRefName
record componentexamples
- the value for theexamples
record 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)
. -
contentType
Returns the value of thecontentType
record component.- Returns:
- the value of the
contentType
record component
-
status
public io.javalin.http.HttpStatus status()Returns the value of thestatus
record component.- Returns:
- the value of the
status
record component
-
description
Returns the value of thedescription
record component.- Returns:
- the value of the
description
record component
-
schemaRefName
Returns the value of theschemaRefName
record component.- Returns:
- the value of the
schemaRefName
record component
-
examples
-