[ 
http://issues.apache.org/jira/browse/DIRSNICKERS-124?page=comments#action_12365055
 ] 

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

The LdapProxy (in sandbox) use the twix codec, so it seems that is is possible 
to use twix to write a proxy or a client ;-)

The big picture is the following :

1) CLIENT uses twix classes to prepare LdapMessage requests 
2) CLIENT sends those messages to the PROXY/SERVER after having encoded them as 
BER, using twix
3) PROXY/SERVER receives a BER binary encoded data
4) PROXY/SERVER calls the decoder which produce a twix instance of the message
5) PROXY/SERVER then calls the transformer to switch from this twix 
representation to the internal message representation
6) PROXY/SERVER does it jobs ...
7) PROXY/SERVER creates an instance of the LdapMessage response using the 
internal representation
8) PROXY/SERVER calls the transformer to switch from the internal 
representation to the twix representation
9) PROXY/SERVER encodes the message as BER, using twix
10) PROXY/SERVER sends the binary data back to the CLIENT
11) CLIENT decodes the binary data and creates an instance of a twix 
representation of the message

I must admit that the transformation is a bit overkilling, to say the least, 
but it does not prevent the implementation of a client or a proxy. The merge 
between the internal representation and the twix representation is something 
that is planned in a forthcoming release.



> 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

Reply via email to