public abstract static class EventPackageSubscriber.Subscription extends EventPackageSupport.Subscription
address, eventId
Constructor and Description |
---|
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.
|
Subscription(javax.sip.address.Address toAddress,
java.lang.String eventId)
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 |
---|---|
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,
java.lang.String reasonCode)
Notifies this Subscription that a terminating NOTIFY
Request has been received and it may process the reason
code carried in it.
|
addressEquals, equals, getAddress, getDialog, getEventId, removed, setDialog, setTimerTask
public 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 instancepublic Subscription(javax.sip.address.Address toAddress, java.lang.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 themprotected 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 implementersprotected 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 implementersprotected 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 implementersprotected abstract void processTerminatedRequest(javax.sip.RequestEvent requestEvent, java.lang.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.
Distributable under Apache license.