directory-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From akaras...@apache.org
Subject svn commit: rev 37160 - incubator/directory/snickers/branches/encoder-redesign/ldap-ber-provider/src/java/org/apache/snickers/ldap/encoder
Date Sat, 28 Aug 2004 07:53:50 GMT
Author: akarasulu
Date: Sat Aug 28 00:53:49 2004
New Revision: 37160

Modified:
   incubator/directory/snickers/branches/encoder-redesign/ldap-ber-provider/src/java/org/apache/snickers/ldap/encoder/SnickersLdapEncoder.java
Log:
Added the rest of the encoders in with hooks in switch statement.


Modified: incubator/directory/snickers/branches/encoder-redesign/ldap-ber-provider/src/java/org/apache/snickers/ldap/encoder/SnickersLdapEncoder.java
==============================================================================
--- incubator/directory/snickers/branches/encoder-redesign/ldap-ber-provider/src/java/org/apache/snickers/ldap/encoder/SnickersLdapEncoder.java
(original)
+++ incubator/directory/snickers/branches/encoder-redesign/ldap-ber-provider/src/java/org/apache/snickers/ldap/encoder/SnickersLdapEncoder.java
Sat Aug 28 00:53:49 2004
@@ -29,11 +29,21 @@
 import org.apache.snickers.ldap.encoder.search.SearchRequestEncoder;
 import org.apache.snickers.ldap.encoder.search.SearchResponseDoneEncoder;
 import org.apache.snickers.ldap.encoder.search.SearchResponseEntryEncoder;
+import org.apache.snickers.ldap.encoder.search.SearchResponseReferenceEncoder;
 import org.apache.snickers.ldap.encoder.unbind.UnbindRequestEncoder;
 import org.apache.snickers.ldap.encoder.delete.DeleteRequestEncoder;
 import org.apache.snickers.ldap.encoder.delete.DeleteResponseEncoder;
 import org.apache.snickers.ldap.encoder.add.AddRequestEncoder;
 import org.apache.snickers.ldap.encoder.add.AddResponseEncoder;
+import org.apache.snickers.ldap.encoder.compare.CompareRequestEncoder;
+import org.apache.snickers.ldap.encoder.compare.CompareResponseEncoder;
+import org.apache.snickers.ldap.encoder.extended.ExtendedRequestEncoder;
+import org.apache.snickers.ldap.encoder.extended.ExtendedResponseEncoder;
+import org.apache.snickers.ldap.encoder.abandon.AbandonRequestEncoder;
+import org.apache.snickers.ldap.encoder.modify.ModifyRequestEncoder;
+import org.apache.snickers.ldap.encoder.modify.ModifyResponseEncoder;
+import org.apache.snickers.ldap.encoder.modifyDn.ModifyDnRequestEncoder;
+import org.apache.snickers.ldap.encoder.modifyDn.ModifyDnResponseEncoder;
 
 
 
@@ -58,6 +68,8 @@
         switch( msg.getType().getValue() )
         {
             case( MessageTypeEnum.ABANDONREQUEST_VAL ):
+                root = AbandonRequestEncoder.INSTANCE
+                        .encode( ( AbandonRequest ) msg );
                 break;
 
             case( MessageTypeEnum.ADDREQUEST_VAL ):
@@ -80,6 +92,14 @@
                         .encode( ( BindResponse ) msg );
                 break;
 
+            case( MessageTypeEnum.COMPAREREQUEST_VAL ):
+                root = CompareRequestEncoder.INSTANCE
+                    .encode( ( CompareRequest ) msg );
+
+            case( MessageTypeEnum.COMPARERESPONSE_VAL ):
+                root = CompareResponseEncoder.INSTANCE
+                    .encode( ( CompareResponse ) msg );
+
             case( MessageTypeEnum.DELREQUEST_VAL ):
                 root = DeleteRequestEncoder.INSTANCE
                         .encode( ( DeleteRequest ) msg );
@@ -90,6 +110,36 @@
                         .encode( ( DeleteResponse ) msg );
                 break;
 
+            case( MessageTypeEnum.EXTENDEDREQ_VAL ):
+                root = ExtendedRequestEncoder.INSTANCE
+                        .encode( ( ExtendedRequest ) msg );
+                break;
+
+            case( MessageTypeEnum.EXTENDEDRESP_VAL ):
+                root = ExtendedResponseEncoder.INSTANCE
+                        .encode( ( ExtendedResponse ) msg );
+                break;
+
+            case( MessageTypeEnum.MODIFYREQUEST_VAL ):
+                root = ModifyRequestEncoder.INSTANCE
+                        .encode( ( ModifyRequest ) msg );
+                break;
+
+            case( MessageTypeEnum.MODIFYRESPONSE_VAL ):
+                root = ModifyResponseEncoder.INSTANCE
+                        .encode( ( ModifyResponse ) msg );
+                break;
+
+            case( MessageTypeEnum.MODDNREQUEST_VAL ):
+                root = ModifyDnRequestEncoder.INSTANCE
+                        .encode( ( ModifyDnRequest ) msg );
+                break;
+
+            case( MessageTypeEnum.MODDNRESPONSE_VAL ):
+                root = ModifyDnResponseEncoder.INSTANCE
+                        .encode( ( ModifyDnResponse ) msg );
+                break;
+
             case( MessageTypeEnum.SEARCHREQUEST_VAL ):
                 root = SearchRequestEncoder.INSTANCE
                         .encode( ( SearchRequest ) msg );
@@ -103,6 +153,11 @@
             case( MessageTypeEnum.SEARCHRESENTRY_VAL ):
                 root = SearchResponseEntryEncoder.INSTANCE
                         .encode( ( SearchResponseEntry ) msg );
+                break;
+
+            case( MessageTypeEnum.SEARCHRESREF_VAL ):
+                root = SearchResponseReferenceEncoder.INSTANCE
+                        .encode( ( SearchResponseReference ) msg );
                 break;
 
             case( MessageTypeEnum.UNBINDREQUEST_VAL ):

Mime
View raw message