net.java.sip.communicator.service.ldap.event
Class LdapEvent
java.lang.Object
java.util.EventObject
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
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 triggeredcontent - related content
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.
Distributable under LGPL license.