Jitsi: the OpenSource Java VoIP and Instant Messaging client.

net.java.sip.communicator.service.protocol.event
Class SubscriptionAdapter

java.lang.Object
  extended by net.java.sip.communicator.service.protocol.event.SubscriptionAdapter
All Implemented Interfaces:
EventListener, SubscriptionListener

public class SubscriptionAdapter
extends Object
implements SubscriptionListener

Represents a default implementation of SubscriptionListener which performs no processing of the received events and allows extenders to easily implement the interface in question by just overriding the methods they are interested in.

Author:
Lubomir Marinov

Constructor Summary
SubscriptionAdapter()
           
 
Method Summary
 void contactModified(ContactPropertyChangeEvent evt)
          Indicates that the source contact has had one of its properties changed.
 void subscriptionCreated(SubscriptionEvent evt)
          Indicates that a subscription has been successfully created and accepted by the remote party.
 void subscriptionFailed(SubscriptionEvent evt)
          Indicates that a subscription has failed and/or was not accepted by the remote party.
 void subscriptionMoved(SubscriptionMovedEvent evt)
          Indicates that a contact/subscription has been moved from one server stored group to another.
 void subscriptionRemoved(SubscriptionEvent evt)
          Indicates that a subscription has been successfully removed and that the remote party has acknowledged its removal.
 void subscriptionResolved(SubscriptionEvent evt)
          Indicates that a subscription has been successfully resolved and that the server has acknowledged taking it into account.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SubscriptionAdapter

public SubscriptionAdapter()
Method Detail

contactModified

public void contactModified(ContactPropertyChangeEvent evt)
Description copied from interface: SubscriptionListener
Indicates that the source contact has had one of its properties changed.

Specified by:
contactModified in interface SubscriptionListener
Parameters:
evt - the ContactPropertyChangeEvent containing the source contact and the old and new values of the changed property.

subscriptionCreated

public void subscriptionCreated(SubscriptionEvent evt)
Description copied from interface: SubscriptionListener
Indicates that a subscription has been successfully created and accepted by the remote party.

Specified by:
subscriptionCreated in interface SubscriptionListener
Parameters:
evt - the SubscriptionEvent containing the corresponding contact

subscriptionFailed

public void subscriptionFailed(SubscriptionEvent evt)
Description copied from interface: SubscriptionListener
Indicates that a subscription has failed and/or was not accepted by the remote party.

Specified by:
subscriptionFailed in interface SubscriptionListener
Parameters:
evt - the SubscriptionEvent containing the corresponding contact

subscriptionMoved

public void subscriptionMoved(SubscriptionMovedEvent evt)
Description copied from interface: SubscriptionListener
Indicates that a contact/subscription has been moved from one server stored group to another. The method would only be called by implementations of OperationSetPersistentPresence as non persistent presence operation sets do not support the notion of server stored groups.

Specified by:
subscriptionMoved in interface SubscriptionListener
Parameters:
evt - a reference to the SubscriptionMovedEvent containing previous and new parents as well as a ref to the source contact.

subscriptionRemoved

public void subscriptionRemoved(SubscriptionEvent evt)
Description copied from interface: SubscriptionListener
Indicates that a subscription has been successfully removed and that the remote party has acknowledged its removal.

Specified by:
subscriptionRemoved in interface SubscriptionListener
Parameters:
evt - the SubscriptionEvent containing the corresponding contact

subscriptionResolved

public void subscriptionResolved(SubscriptionEvent evt)
Description copied from interface: SubscriptionListener
Indicates that a subscription has been successfully resolved and that the server has acknowledged taking it into account.

Specified by:
subscriptionResolved in interface SubscriptionListener
Parameters:
evt - the SubscriptionEvent containing the source contact

Jitsi: the OpenSource Java VoIP and Instant Messaging client.

Jitsi, the OpenSource Java VoIP and Instant Messaging client.
Distributable under LGPL license.