|
Jitsi: the OpenSource Java VoIP and Instant Messaging client. | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectnet.java.sip.communicator.impl.protocol.sip.EventPackageSupport.Subscription
net.java.sip.communicator.impl.protocol.sip.EventPackageSubscriber.Subscription
public abstract static class EventPackageSubscriber.Subscription
Represents a general event package subscription in the sense of RFC 3265 "Session Initiation Protocol (SIP)-Specific Event Notification" from the point of view of the subscriber and its signaling characteristics such as Request URI, id tag value of its Event header, the Dialog which has been created by the associated SUBSCRIBE request or through which it was sent. Additionally, represents the subscription-specific processing of the related Requests and Response s thus allowing implementers to tap into the general event package subscription operations and provide the event package-specific processing.
| Field Summary |
|---|
| Fields inherited from class net.java.sip.communicator.impl.protocol.sip.EventPackageSupport.Subscription |
|---|
address, eventId |
| Constructor Summary | |
|---|---|
EventPackageSubscriber.Subscription(javax.sip.address.Address toAddress)
Initializes a new Subscription instance with a specific subscription Address/Request URI and an id tag of the associated Event headers of value null. |
|
EventPackageSubscriber.Subscription(javax.sip.address.Address toAddress,
String eventId)
Initializes a new Subscription instance with a specific subscription Address/Request URI and a specific id tag of the associated Event headers. |
|
| Method Summary | |
|---|---|
protected abstract void |
processActiveRequest(javax.sip.RequestEvent requestEvent,
byte[] rawContent)
Notifies this Subscription that an active NOTIFY Request has been received and it may process the specified raw content carried in it. |
protected abstract void |
processFailureResponse(javax.sip.ResponseEvent responseEvent,
int statusCode)
Notifies this Subscription that a Response to a previous SUBSCRIBE Request has been received with a status code in the failure range and it may process the status code carried in it. |
protected abstract void |
processSuccessResponse(javax.sip.ResponseEvent responseEvent,
int statusCode)
Notifies this Subscription that a Response to a previous SUBSCRIBE Request has been received with a status code in the success range and it may process the status code carried in it. |
protected abstract void |
processTerminatedRequest(javax.sip.RequestEvent requestEvent,
String reasonCode)
Notifies this Subscription that a terminating NOTIFY Request has been received and it may process the reason code carried in it. |
| Methods inherited from class net.java.sip.communicator.impl.protocol.sip.EventPackageSupport.Subscription |
|---|
addressEquals, equals, getAddress, getDialog, getEventId, removed, setDialog, setTimerTask |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public EventPackageSubscriber.Subscription(javax.sip.address.Address toAddress)
toAddress - the subscription Address/Request URI which is
to be the target of the SUBSCRIBE requests associated with
the new instance
public EventPackageSubscriber.Subscription(javax.sip.address.Address toAddress,
String eventId)
toAddress - the subscription Address/Request URI which is
to be the target of the SUBSCRIBE requests associated with
the new instanceeventId - the value of the id tag to be placed in the Event headers
of the SUBSCRIBE 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| Method Detail |
|---|
protected abstract void processActiveRequest(javax.sip.RequestEvent requestEvent,
byte[] rawContent)
requestEvent - the RequestEvent carrying the full details of
the received NOTIFY Request including the raw
content which may be processed by this
SubscriptionrawContent - an array of bytes which represents the raw content carried
in the body of the received NOTIFY Request
and extracted from the specified RequestEvent
for the convenience of the implementers
protected abstract void processFailureResponse(javax.sip.ResponseEvent responseEvent,
int statusCode)
responseEvent - the ResponseEvent carrying the full details
of the received Response including the status
code which may be processed by this
SubscriptionstatusCode - the status code carried in the Response and
extracted from the specified ResponseEvent
for the convenience of the implementers
protected abstract void processSuccessResponse(javax.sip.ResponseEvent responseEvent,
int statusCode)
responseEvent - the ResponseEvent carrying the full details
of the received Response including the status
code which may be processed by this
SubscriptionstatusCode - the status code carried in the Response and
extracted from the specified ResponseEvent
for the convenience of the implementers
protected abstract void processTerminatedRequest(javax.sip.RequestEvent requestEvent,
String reasonCode)
requestEvent - the RequestEvent carrying the full details of
the received NOTIFY Request including the
reason code which may be processed by this
SubscriptionreasonCode - the code of the reason for the termination carried in the
NOTIFY Request and extracted from the
specified RequestEvent for the convenience of
the implementers
|
Jitsi: the OpenSource Java VoIP and Instant Messaging client. | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||