Package com.vonage.client.common
Class Webhook
java.lang.Object
com.vonage.client.JsonableBaseObject
com.vonage.client.common.Webhook
- All Implemented Interfaces:
Jsonable
Deprecated.
Represents the "webhooks" field used in Application capabilities.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classDeprecated.Builder for configuring Webhook object.static enumDeprecated.Represents the webhook URL type. -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedWebhook()Deprecated.Webhook(String address, HttpMethod method) Deprecated. -
Method Summary
Modifier and TypeMethodDescriptionstatic Webhook.Builderbuilder()Deprecated.Entrypoint for constructing an instance of this class.Deprecated.The webhook's URL.Deprecated.If Vonage can't connect to the webhook URL for this specified amount of time, then Vonage makes one additional attempt to connect to the webhook endpoint.Deprecated.The HTTP request method for this webhook.Deprecated.If a response from the webhook URL can't be read for this specified amount of time, then Vonage makes one additional attempt to read the webhook endpoint.Methods inherited from class com.vonage.client.JsonableBaseObject
createJsonObjectMapper, equals, hashCode, toStringMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface com.vonage.client.Jsonable
toJson, updateFromJson
-
Constructor Details
-
Webhook
protected Webhook()Deprecated. -
Webhook
Deprecated.
-
-
Method Details
-
getAddress
Deprecated.The webhook's URL.- Returns:
- The URL as a string.
-
getMethod
Deprecated.The HTTP request method for this webhook.- Returns:
- The HTTP method as an enum.
-
getConnectionTimeout
Deprecated.If Vonage can't connect to the webhook URL for this specified amount of time, then Vonage makes one additional attempt to connect to the webhook endpoint. This is an integer value specified in milliseconds. The minimum is 300, maximum 1000 and default is 1000.- Returns:
- The connection timeout in milliseconds as an integer, or
nullif unspecified (the default) / not applicable.
-
getSocketTimeout
Deprecated.If a response from the webhook URL can't be read for this specified amount of time, then Vonage makes one additional attempt to read the webhook endpoint. This is an integer value specified in milliseconds. The minimum is 1000, maximum 5000 and default is 5000.- Returns:
- The socket timeout in milliseconds as an integer, or
nullif unspecified (the default) / not applicable.
-
builder
Deprecated.Entrypoint for constructing an instance of this class.- Returns:
- A new Builder.
- Since:
- 7.7.0
-
com.vonage.client.applicationpackage.