Jitsi: the OpenSource Java VoIP and Instant Messaging client.

net.java.sip.communicator.service.ldap.event
Class LdapEvent

java.lang.Object
  extended by java.util.EventObject
      extended by net.java.sip.communicator.service.ldap.event.LdapEvent
All Implemented Interfaces:
Serializable

public class LdapEvent
extends EventObject

An LdapEvent is triggered when the state of the LDAP connection changes. Available states for the moment are : connected disconnected connecting disconnecting

Author:
Sebastien Mazy
See Also:
Serialized Form

Nested Class Summary
static class LdapEvent.LdapEventCause
          Indicates the possible causes why an event was triggered
 
Field Summary
 
Fields inherited from class java.util.EventObject
source
 
Constructor Summary
LdapEvent(LdapEventManager source, LdapEvent.LdapEventCause cause)
          Simple constructor for this class
LdapEvent(LdapEventManager source, LdapEvent.LdapEventCause cause, Object content)
          Another constructor for this class.
 
Method Summary
 LdapEvent.LdapEventCause getCause()
           
 Object getContent()
           
 LdapEventManager getSource()
          Returns the LdapEventManager which sent the LdapEvent.
 
Methods inherited from class java.util.EventObject
toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

LdapEvent

public LdapEvent(LdapEventManager source,
                 LdapEvent.LdapEventCause cause)
Simple constructor for this class

Parameters:
source - the source of the event (most likely an LdapDirectory)
cause - the cause why it was triggered

LdapEvent

public LdapEvent(LdapEventManager source,
                 LdapEvent.LdapEventCause cause,
                 Object content)
Another constructor for this class. Use that one to pass more information to the listener using any Object.

Parameters:
source - the source of the event (most likely an LdapDirectory)
cause - the cause why it was triggered
content - related content
Method Detail

getCause

public LdapEvent.LdapEventCause getCause()
Returns:
the cause why this event was triggered

getContent

public Object getContent()
Returns:
the object embedded in this event, or null if there isn't one

getSource

public LdapEventManager getSource()
Returns the LdapEventManager which sent the LdapEvent.

Overrides:
getSource in class EventObject
Returns:
the LdapEventManager which sent the LdapEvent

Jitsi: the OpenSource Java VoIP and Instant Messaging client.

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