public interface ProfileSubscription
ProfileServiceSpi.subscribe.
It is also used by callbacks invoked because of the subscription.| Modifier and Type | Interface and Description |
|---|---|
static class |
ProfileSubscription.ProfileSubscriptionState
PENDING means the subscription request has been submitted, and the
final state of the subscription is not yet known.
|
| Modifier and Type | Method and Description |
|---|---|
void |
cancel()
Cancels the subscription.
|
javax.servlet.sip.SipApplicationSession |
getApplicationSession()
The SipApplicationSession that was used to register the subscription.
|
String |
getDocumentSelector()
The document selector that was used to register the subscription.
|
int |
getExpires()
Returns the remaining length of this subscription, in seconds.
|
Serializable |
getInfo()
The information that was used when registering the subscription.
|
ProfileSubscription.ProfileSubscriptionState |
getSubscriptionState()
This method indicates the current state of the subscription.
|
void |
setExpires(int seconds)
Requests that the subscription expires seconds seconds from now.
|
ProfileSubscription.ProfileSubscriptionState getSubscriptionState()
javax.servlet.sip.SipApplicationSession getApplicationSession()
String getDocumentSelector()
Serializable getInfo()
void cancel()
throws ProfileException
ProfileExceptionint getExpires()
void setExpires(int seconds)
throws ProfileException
cancel().
Modifying the length of the subscription may not be possible in all cases.
If it is not possible, no exception is thrown; user code interested in this
case should catch SubscriptionModificationFailedException,
a subclass of ProfileException.
Note also that in some implementations the update may not be instantaneous.
If it is not, the application should wait for an
ProfileListener.modification(ProfileSubscription)
call indicating the update was successful.
seconds - ProfileException