directory-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From elecha...@apache.org
Subject svn commit: r208954 - /directory/sandbox/trunk/asn1-new-codec/src/java/org/apache/asn1/ldap/codec/grammars/LdapMessageGrammar.java
Date Sun, 03 Jul 2005 17:15:20 GMT
Author: elecharny
Date: Sun Jul  3 10:15:17 2005
New Revision: 208954

URL: http://svn.apache.org/viewcvs?rev=208954&view=rev
Log:
Added the CompareRequest 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=208954&r1=208953&r2=208954&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 10:15:17 2005
@@ -149,7 +149,7 @@
         // 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 0x6E, then it's a CompareRequest
         // 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 
@@ -298,6 +298,16 @@
         // We have to switch to the ModifyDNResponse grammar
         super.transitions[LdapStatesEnum.PROTOCOL_OP_TAG][0x6D] = new GrammarTransition(
                 LdapStatesEnum.PROTOCOL_OP_TAG, LdapStatesEnum.MODIFY_DN_RESPONSE_GRAMMAR_SWITCH,
+                null );
+
+        //--------------------------------------------------------------------------------------------
+        // CompareResquest Message.
+        //--------------------------------------------------------------------------------------------
+        // LdapMessage ::= ... CompareRequest ...
+        // CompareRequest ::= [APPLICATION 14] SEQUENCE {
+        // We have to switch to the CompareRequest grammar
+        super.transitions[LdapStatesEnum.PROTOCOL_OP_TAG][0x6E] = new GrammarTransition(
+                LdapStatesEnum.PROTOCOL_OP_TAG, LdapStatesEnum.COMPARE_REQUEST_GRAMMAR_SWITCH,
                 null );
 
         //--------------------------------------------------------------------------------------------



Mime
View raw message