You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@directory.apache.org by el...@apache.org on 2006/01/18 01:09:39 UTC
svn commit: r369969 -
/directory/trunks/common/ldap/src/main/java/org/apache/ldap/common/codec/ControlValueAction.java
Author: elecharny
Date: Tue Jan 17 16:09:36 2006
New Revision: 369969
URL: http://svn.apache.org/viewcvs?rev=369969&view=rev
Log:
Added the SubEntry control decoder
Modified:
directory/trunks/common/ldap/src/main/java/org/apache/ldap/common/codec/ControlValueAction.java
Modified: directory/trunks/common/ldap/src/main/java/org/apache/ldap/common/codec/ControlValueAction.java
URL: http://svn.apache.org/viewcvs/directory/trunks/common/ldap/src/main/java/org/apache/ldap/common/codec/ControlValueAction.java?rev=369969&r1=369968&r2=369969&view=diff
==============================================================================
--- directory/trunks/common/ldap/src/main/java/org/apache/ldap/common/codec/ControlValueAction.java (original)
+++ directory/trunks/common/ldap/src/main/java/org/apache/ldap/common/codec/ControlValueAction.java Tue Jan 17 16:09:36 2006
@@ -26,6 +26,7 @@
import org.apache.asn1.ber.tlv.Value;
import org.apache.asn1.codec.DecoderException;
import org.apache.ldap.common.codec.search.controls.PSearchControlDecoder;
+import org.apache.ldap.common.codec.search.controls.SubEntryControlDecoder;
import org.apache.ldap.common.util.StringTools;
import org.slf4j.Logger;
@@ -53,8 +54,12 @@
ControlDecoder decoder;
decoder = new PSearchControlDecoder();
controlDecoders.put( decoder.getControlType(), decoder );
+
decoder = new ManageDsaITControlDecoder();
controlDecoders.put( decoder.getControlType(), decoder );
+
+ decoder = new SubEntryControlDecoder();
+ controlDecoders.put( decoder.getControlType(), decoder );
}
@@ -78,6 +83,7 @@
else
{
Object decoded;
+
if ( decoder != null )
{
decoded = decoder.decode( value.getData() );
@@ -86,6 +92,7 @@
{
decoded = value.getData();
}
+
control.setEncodedValue( value.getData() );
control.setControlValue( decoded );
}