[Date Prev][Date Next] [Chronological] [Thread] [Top]

Re: Java LDAP API: Unsolicited notifications



  I missed this message in my summary of feedback on the latest Java LDAP API draft. I agree with Javed.

Rob


Javed Khan wrote:
> 
> 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
> 
>                                                   ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
> 
>    TEXT.htmName: TEXT.htm
>            Type: Plain Text (text/plain)