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 2005/06/02 01:21:32 UTC

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

Author: elecharny
Date: Wed Jun  1 16:21:31 2005
New Revision: 179461

URL: http://svn.apache.org/viewcvs?rev=179461&view=rev
Log:
Added the DelResponse transition grammar

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=179461&r1=179460&r2=179461&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 Wed Jun  1 16:21:31 2005
@@ -180,6 +180,8 @@
         // 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. 
         // If the Tag is 0x69, then it's a AddResponse. 
+        // If the Tag is 0x6B, then it's a DelResponse. 
+        // If the Tag is 0x6F, then it's a CompareResponse. 
         //********************************************************************************************
         
         //--------------------------------------------------------------------------------------------
@@ -221,6 +223,14 @@
         // AddResponse ::= [APPLICATION 9] LDAPResult (Tag)
         // We have to switch to the AddResponse grammar
         super.transitions[LdapStatesEnum.PROTOCOL_OP_TAG][0x69] = new GrammarTransition( LdapStatesEnum.PROTOCOL_OP_TAG, LdapStatesEnum.ADD_RESPONSE_GRAMMAR_SWITCH, null);
+
+        //--------------------------------------------------------------------------------------------
+        // DelResponse Message.
+        //--------------------------------------------------------------------------------------------
+        // LdapMessage ::= ... DelResponse ...
+        // DelResponse ::= [APPLICATION 11] LDAPResult (Tag)
+        // We have to switch to the DelResponse grammar
+        super.transitions[LdapStatesEnum.PROTOCOL_OP_TAG][0x6B] = new GrammarTransition( LdapStatesEnum.PROTOCOL_OP_TAG, LdapStatesEnum.DEL_RESPONSE_GRAMMAR_SWITCH, null);
 
         //--------------------------------------------------------------------------------------------
         // CompareResponse Message.