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> T
Generic 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
-
getCallbacks
Returns the callbacks map.- Returns:
- The callbacks map.
-
setCallbacks
Sets the callbacks map.- Parameters:
value
- The new value for this property.- Returns:
- This object.
-
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:OpenApiElement
Generic property getter.Can be used to retrieve non-standard Swagger fields such as
"$ref" .- Overrides:
get
in 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.
-
set
Description copied from class:OpenApiElement
Generic property setter.Can be used to set non-standard Swagger fields such as
"$ref" .- Overrides:
set
in classOpenApiElement
- Parameters:
property
- The property name to set. Must not benull .value
- The new value for the property.- Returns:
- This object
-
keySet
Description copied from class:OpenApiElement
Returns all the keys on this element.- Overrides:
keySet
in classOpenApiElement
- Returns:
- All the keys on this element.
Nevernull .
-
strict
Description copied from class:OpenApiElement
Sets strict mode on this bean.- Overrides:
strict
in classOpenApiElement
- Returns:
- This object
-
strict
Description copied from class:OpenApiElement
Sets strict mode on this bean.- Overrides:
strict
in 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
-