directory-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From elecha...@apache.org
Subject svn commit: r208942 - /directory/sandbox/trunk/asn1-new-codec/src/java/org/apache/asn1/ldap/codec/grammars/LdapMessageGrammar.java
Date Sun, 03 Jul 2005 16:08:40 GMT
Author: elecharny
Date: Sun Jul  3 09:08:40 2005
New Revision: 208942

URL: http://svn.apache.org/viewcvs?rev=208942&view=rev
Log:
Added the DelRequest transition

Modified:
    directory/sandbox/trunk/asn1-new-codec/src/java/org/apache/asn1/ldap/codec/grammars/LdapMessageGrammar.java

Modified: directory/sandbox/trunk/asn1-new-codec/src/java/org/apache/asn1/ldap/codec/grammars/LdapMessageGrammar.java
URL: http://svn.apache.org/viewcvs/directory/sandbox/trunk/asn1-new-codec/src/java/org/apache/asn1/ldap/codec/grammars/LdapMessageGrammar.java?rev=208942&r1=208941&r2=208942&view=diff
==============================================================================
--- directory/sandbox/trunk/asn1-new-codec/src/java/org/apache/asn1/ldap/codec/grammars/LdapMessageGrammar.java
(original)
+++ directory/sandbox/trunk/asn1-new-codec/src/java/org/apache/asn1/ldap/codec/grammars/LdapMessageGrammar.java
Sun Jul  3 09:08:40 2005
@@ -135,6 +135,7 @@
 
         //********************************************************************************************
         // If the Tag is 0x42, then it's a UnBindRequest.
+        // If the Tag is 0x4A, then it's a DelRequest.
         // If the Tag is 0x50, then it's an AbandonRequest.
         // If the Tag is 0x60, then it's a BindRequest. Nothing to do while the length is
not checked.
         // If the Tag is 0x61, then it's a BindResponse.
@@ -143,10 +144,16 @@
         // If the Tag is 0x65, then it's a SearchResultDone
         // If the Tag is 0x66, then it's a ModifyRequest
         // If the Tag is 0x67, then it's a ModifyResponse.
+        // If the Tag is 0x68, then it's an AddRequest.
         // If the Tag is 0x69, then it's an AddResponse.
         // If the Tag is 0x6B, then it's a DelResponse.
+        // If the Tag is 0x6C, then it's a ModifyDNRequest.
         // If the Tag is 0x6D, then it's a ModifyDNResponse.
+        // If the Tag is 0x6E, then it's a 
         // If the Tag is 0x6F, then it's a CompareResponse.
+        // If the Tag is 0x73, then it's a SearchResultReference.
+        // If the Tag is 0x77, then it's a 
+        // If the Tag is 0x78, then it's a 
         //********************************************************************************************
 
         //--------------------------------------------------------------------------------------------
@@ -157,6 +164,16 @@
         // We have to switch to the UnBindRequest grammar
         super.transitions[LdapStatesEnum.PROTOCOL_OP_TAG][0x42] = new GrammarTransition(
                 LdapStatesEnum.PROTOCOL_OP_TAG, LdapStatesEnum.UNBIND_REQUEST_GRAMMAR_SWITCH,
+                null );
+
+        //--------------------------------------------------------------------------------------------
+        // DelRequest Message.
+        //--------------------------------------------------------------------------------------------
+        // LdapMessage ::= ... DelRequest ...
+        // delRequest ::= [APPLICATION 10] LDAPDN (Tag)
+        // We have to switch to the DelRequest grammar
+        super.transitions[LdapStatesEnum.PROTOCOL_OP_TAG][0x4A] = new GrammarTransition(
+                LdapStatesEnum.PROTOCOL_OP_TAG, LdapStatesEnum.DEL_REQUEST_GRAMMAR_SWITCH,
                 null );
 
         //--------------------------------------------------------------------------------------------



Mime
View raw message