LDAP Classes
Implements Java LDAP

com.novell.ldap.events.edir.eventdata
Class ConnectionStateEventData

java.lang.Object
  extended bycom.novell.ldap.events.edir.eventdata.ConnectionStateEventData
All Implemented Interfaces:
EventResponseData

public class ConnectionStateEventData
extends java.lang.Object
implements EventResponseData

This class represents the data for Connection Change Event. The event data has the following encoding:-

ConnectionState ::= [APPLICATION 9]
    SEQUENCE {
    connectionDN LDAPDN,
    oldFlags INTEGER,
    newFlags INTEGER,
    sourceModule LDAPSTRING
    }

Note: Please refer the JLDAP SDK Documentation at http://developer.novell.com/ndk/jldap.htm for details of all the properties.


Constructor Summary
ConnectionStateEventData(ASN1Object message)
          Default Constructor
 
Method Summary
 java.lang.String getConnectiondn()
          Returns the Connection DN, for which Connection State changed.
 int getNewFlags()
          Returns the new Flag associated with the Connections.
 int getOldFlags()
          Returns the old Flag associated with the Connections.
 java.lang.String getSourceModule()
          Returns the Source Module which generated this event.
 java.lang.String toString()
          Returns a string representation of the object.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ConnectionStateEventData

public ConnectionStateEventData(ASN1Object message)
                         throws java.io.IOException
Default Constructor

Parameters:
message - ASN1Object containing the encoded data as String.
Throws:
java.io.IOException - When decoding of message fails.
Method Detail

getConnectiondn

public java.lang.String getConnectiondn()
Returns the Connection DN, for which Connection State changed.

Returns:
Connection DN as String.

getNewFlags

public int getNewFlags()
Returns the new Flag associated with the Connections.

Returns:
New Flags as integer.

getOldFlags

public int getOldFlags()
Returns the old Flag associated with the Connections.

Returns:
Old Flags as integer.

getSourceModule

public java.lang.String getSourceModule()
Returns the Source Module which generated this event.

Returns:
Source Module as String.

toString

public java.lang.String toString()
Returns a string representation of the object.

Returns:
a string representation of the object.
See Also:
Object.toString()

LDAP Classes
Implements Java LDAP

Copyright © 2002 Novell, Inc. All Rights Reserved.
Novell, Inc.
1800 South Novell Place
Provo, Ut 84606
Phone: (801) 861-5000