public final class EventPackageUtils
extends java.lang.Object
Dialog
instances and extend the mentioned type with additional functionality.Modifier and Type | Method and Description |
---|---|
static boolean |
addSubscription(javax.sip.Dialog dialog,
java.lang.Object subscription)
Associates a specific subscription with the a given Dialog
in order to allow it to keep the dialog in question alive even after a
BYE request.
|
static boolean |
isByeProcessed(javax.sip.Dialog dialog)
Determines whether a BYE request has already been processed in a specific
Dialog and thus allows determining whether the dialog in
question should be terminated when the last associated subscription is
terminated.
|
static boolean |
processByeThenIsDialogAlive(javax.sip.Dialog dialog)
Processes a BYE request in a specific Dialog for the
purposes of subscription associations and returns an indicator which
determines whether the specified dialog should still be considered alive
after the processing of the BYE request.
|
static boolean |
removeSubscriptionThenIsDialogAlive(javax.sip.Dialog dialog,
java.lang.Object subscription)
Dissociates a specific subscription with a given Dialog in
order to no longer allow it to keep the dialog in question alive even
after a BYE request, deletes the dialog if there are no other
subscriptions associated with it and a BYE request has already been
received and returns an indicator which determines whether the specified
dialog is still alive after the dissociation of the given subscription.
|
public static boolean addSubscription(javax.sip.Dialog dialog, java.lang.Object subscription) throws javax.sip.SipException
dialog
- the Dialog to associate the subscription with
and to be kept alive after a BYE request because of the subscriptionsubscription
- the subscription to be associated with
dialog and keep it alive after a BYE requestjavax.sip.SipException
- if the dialog is already terminated.public static boolean isByeProcessed(javax.sip.Dialog dialog)
dialog
- the Dialog to be examinedpublic static boolean processByeThenIsDialogAlive(javax.sip.Dialog dialog) throws javax.sip.SipException
dialog
- the Dialog in which a BYE request has arrivedjavax.sip.SipException
- if the dialog is already terminated.public static boolean removeSubscriptionThenIsDialogAlive(javax.sip.Dialog dialog, java.lang.Object subscription)
dialog
- the Dialog to dissociate the subscription with
and to no longer be kept alive after a BYE request because of the
subscriptionsubscription
- the subscription to be dissociated with
dialog and to no longer be kept alive after a BYE request
because of the subscription
Jitsi, the OpenSource Java VoIP and Instant Messaging client.
Distributable under Apache license.