directory-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Stefan Seelmann <>
Subject Re: Control interface
Date Mon, 31 Jan 2011 12:05:10 GMT
On Mon, Jan 31, 2011 at 12:08 PM, Emmanuel Lecharny <> wrote:
> Hi,
> in the new Control interface we are now using (not the JNDI one), we don't
> expose the getValue() setValue() hasValue() methods. In many respects, those
> methods are useless, and we don't use them in the server.
> However, from a user perspective, someone writing some code on top of the
> LDAP API, connected to an unknown server, and getting back some unknown
> control, will have no way to get the inner values, unless casting the
> control using the ControlDecorator interface.
> This is wrong. I think we must expose the three methods to the world.

If the user receives an unknown control, what can he do with the value
then? He must be able to decode the ASN.1 BER encoded value anyway,
right? Then he can also write a new Control class. Am I missing

Kind Regards,

View raw message