|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Inner interface SubscriptionManager.
A SubscriptionResponder
only deals with enforcing and
controlling the sequence of messages in a subscription conversation,
while it delegates the
registration/deregistration of subscriptions and the creation of
notifications when required to a SubscriptionManager
object that is passed as parameter in the constructor.
When a new subscription message arrives, the SubscriptionResponder
just calls the register()
method of its
SubscriptionManager
. The user is expected to provide
a class that implements the register()
and
deregister()
methods appropriately.
Method Summary | |
boolean |
deregister(SubscriptionResponder.Subscription s)
Deregister a Subscription object |
boolean |
register(SubscriptionResponder.Subscription s)
Register a new Subscription object |
Method Detail |
public boolean register(SubscriptionResponder.Subscription s) throws RefuseException, NotUnderstoodException
s
- The Subscription object to be registered
SubscriptionResponder
about whether
or not an AGREE message should be sent back to the initiator. The
default implementation of the prepareResponse
method
of the SubscriptionResponder
ignores this indication,
but programmers can override it.
RefuseException
NotUnderstoodException
public boolean deregister(SubscriptionResponder.Subscription s) throws FailureException
SubscriptionResponder
about whether
or not an INFORM message should be sent back to the initiator. The
default implementation of the handleCancel()
method
of the SubscriptionResponder
ignores this indication,
but programmers can override it.
FailureException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |