Package io.muserver.openapi
Class CallbackObjectBuilder
- java.lang.Object
-
- io.muserver.openapi.CallbackObjectBuilder
-
public class CallbackObjectBuilder extends java.lang.Object
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.
-
-
Constructor Summary
Constructors Constructor Description CallbackObjectBuilder()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description CallbackObject
build()
Creates the objectstatic CallbackObjectBuilder
callbackObject()
Creates a builder for aCallbackObject
CallbackObjectBuilder
withCallbacks(java.util.Map<java.lang.String,PathItemObject> callbacks)
-
-
-
Method Detail
-
withCallbacks
public CallbackObjectBuilder withCallbacks(java.util.Map<java.lang.String,PathItemObject> callbacks)
- Parameters:
callbacks
- A mapping of runtime expressions to path items. See the spec for details.- Returns:
- The current builder
-
build
public CallbackObject build()
Creates the object- Returns:
- A new
CallbackObject
-
callbackObject
public static CallbackObjectBuilder callbackObject()
Creates a builder for aCallbackObject
- Returns:
- A new builder
-
-