directory-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From elecha...@apache.org
Subject svn commit: r179366 - /directory/sandbox/trunk/asn1-new-codec/src/java/org/apache/asn1/ldap/codec/grammars/LdapMessageGrammar.java
Date Wed, 01 Jun 2005 06:55:02 GMT
Author: elecharny
Date: Tue May 31 23:55:02 2005
New Revision: 179366

URL: http://svn.apache.org/viewcvs?rev=179366&view=rev
Log:
Added the transition to the CompareResponse 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=179366&r1=179365&r2=179366&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
Tue May 31 23:55:02 2005
@@ -222,5 +222,13 @@
         // 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);
 
+        //--------------------------------------------------------------------------------------------
+        // CompareResponse Message.
+        //--------------------------------------------------------------------------------------------
+        // LdapMessage ::= ... CompareResponse ...
+        // CompareResponse ::= [APPLICATION 15] LDAPResult (Tag)
+        // We have to switch to the CompareResponse grammar
+        super.transitions[LdapStatesEnum.PROTOCOL_OP_TAG][0x6F] = new GrammarTransition(
LdapStatesEnum.PROTOCOL_OP_TAG, LdapStatesEnum.COMPARE_RESPONSE_GRAMMAR_SWITCH, null);
+
     }
 }



Mime
View raw message