Class Callback
The Callback Object is a map of possible out-of-band callbacks related to the parent operation. Each value in the map is a Path Item Object that describes a set of requests that may be initiated by the API provider and the expected responses. The key value used to identify the callback object is an expression, evaluated at runtime, that identifies a URL to use for the callback operation.
OpenAPI Specification:
The Callback Object is composed of the following fields:
callbacks (map ofPathItem) - A map of possible out-of-band callbacks related to the parent operation
Example:
See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionaddCallback(String expression, PathItem pathItem) Adds a callback.copy()Creates a copy of this object.<T> TGeneric property getter.Returns the callbacks map.keySet()Returns all the keys on this element.Generic property setter.setCallbacks(Map<String, PathItem> value) Sets the callbacks map.strict()Sets strict mode on this bean.Sets strict mode on this bean.
-
Constructor Details
-
Callback
public Callback()Default constructor. -
Callback
Copy constructor.- Parameters:
copyFrom- The object to copy.
-
-
Method Details
-
addCallback
Adds a callback.- Parameters:
expression- The callback expression. Must not benull .pathItem- The path item for the callback. Must not benull .- Returns:
- This object.
-
copy
Creates a copy of this object.- Returns:
- A copy of this object.
-
get
Description copied from class:OpenApiElementGeneric property getter.Can be used to retrieve non-standard Swagger fields such as
"$ref" .- Overrides:
getin classOpenApiElement- Type Parameters:
T- The datatype to cast the value to.- Parameters:
property- The property name to retrieve.type- The datatype to cast the value to.- Returns:
- The property value, or
null if the property does not exist or is not set.
-
getCallbacks
Returns the callbacks map.- Returns:
- The callbacks map.
-
keySet
Description copied from class:OpenApiElementReturns all the keys on this element.- Overrides:
keySetin classOpenApiElement- Returns:
- All the keys on this element.
Nevernull .
-
set
Description copied from class:OpenApiElementGeneric property setter.Can be used to set non-standard Swagger fields such as
"$ref" .- Overrides:
setin classOpenApiElement- Parameters:
property- The property name to set. Must not benull .value- The new value for the property.- Returns:
- This object
-
setCallbacks
Sets the callbacks map.- Parameters:
value- The new value for this property.- Returns:
- This object.
-
strict
Description copied from class:OpenApiElementSets strict mode on this bean.- Overrides:
strictin classOpenApiElement- Returns:
- This object
-
strict
Description copied from class:OpenApiElementSets strict mode on this bean.- Overrides:
strictin classOpenApiElement- Parameters:
value- The new value for this property.
Non-boolean values will be converted to boolean usingBoolean..valueOf (value.toString())
Can benull (interpreted asfalse ).- Returns:
- This object
-