public abstract static class EventPackageNotifier.Subscription extends EventPackageSupport.Subscription
|Constructor and Description|
Initializes a new Subscription instance with a specific subscription Address/Request URI and a specific id tag of the associated Event headers.
|Modifier and Type||Method and Description|
Creates the content of the NOTIFY request to be sent to the target represented by this Subscription and having a specific subscription state and a specific reason for that subscription state.
addressEquals, equals, getAddress, getDialog, getEventId, removed, setDialog, setTimerTask
public Subscription(javax.sip.address.Address fromAddress, java.lang.String eventId)
fromAddress- the subscription Address/Request URI which is to be the target of the NOTIFY requests associated with the new instance
eventId- the value of the id tag to be placed in the Event headers of the NOTIFY requests created for the new instance and to be present in the received Event headers in order to have the new instance associated with them
protected abstract byte createNotifyContent(java.lang.String subscriptionState, java.lang.String reason)
subscriptionState- the subscription state to be notified about in the NOTIFY request which is to carry the returned content
reason- the reason for the subscription state to be notified about in the NOTIFY request which is to carry the returned content
Jitsi, the OpenSource Java VoIP and Instant Messaging client.
Distributable under Apache license.