Subject: Java LDAP API: Unsolicited notifications

From: "Javed Khan" <[email-masked]>
Date: Thu, 15 Feb 2001 15:06:10 -0700

RFC 2251 (page 24)  says that unsolicited notifications are essentially LDAP Extended Response type LDAPMessage(es).  It might be cleaner to change the prototype for the "messageReceived" method in the new  "LDAPUnsolicitedNotificationListener" class to:

public void messageReceived(LDAPExtendedResponse msg); 

instead of

public void messageReceived(LDAPMessage msg);

This way the listener sub-class can easily get access to the OID and any other data in the unsolicited notification by using the access methods already defined in the LDAPExtendedResponse class.  After all the OID and data field are the only interesting piece of information in the unsolicited notification.

Javed