directory-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Emmanuel Lecharny (JIRA)" <directory-...@incubator.apache.org>
Subject [jira] Commented: (DIRSNICKERS-124) Control is a Class and an Interface in two packages.
Date Mon, 06 Feb 2006 07:08:06 GMT
    [ http://issues.apache.org/jira/browse/DIRSNICKERS-124?page=comments#action_12365244 ]


Emmanuel Lecharny commented on DIRSNICKERS-124:
-----------------------------------------------

Hi Van (if Van is your firstname :),

it would work if you use the twix object instead of the internal object. In you piece of code,
just do that :
 
   import org.apache.ldap.common.codec.bind.BindRequest;

   public void testEncodeBindRequest() throws EncoderException
    {
        final BindRequest req0 = new BindRequest();
        req0.setMessageId( 1 )
        ((SimpleAuthentication)req0.getAuthentication()).setSimple( "password".getBytes( "UTF8"
) );
        req0.setName( new LdapDN( "cn=admin,dc=example,dc=com" ) );
        req0.setVersion( 3 );
        try
        {
            ByteBuffer bb = req0.encode( null );
        }
        catch ( EncoderException ee )
        {
            ee.printStackTrace();
            fail( ee.getMessage() );
        }
    } 

You will get a bytebuffer with the encoded value to be send to the server.

The twix API is not very confortable atm, but it can evelve in the future.

feel free to contact me directly if you need any information.

> Control is a Class and an Interface in two packages.
> ----------------------------------------------------
>
>          Key: DIRSNICKERS-124
>          URL: http://issues.apache.org/jira/browse/DIRSNICKERS-124
>      Project: Directory ASN1
>         Type: Improvement
>     Reporter: Emmanuel Lecharny
>     Assignee: Emmanuel Lecharny

>
> We have too elements with the same name : Control.
> it's an Interface in org.apache.ldap.common.message and a class in org.apache.ldap.common.codec
> We must keep only one of those two elements

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
   http://www.atlassian.com/software/jira


Mime
View raw message