directory-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From elecha...@apache.org
Subject svn commit: r201904 - /directory/sandbox/trunk/asn1-new-codec/src/java/org/apache/asn1/ldap/codec/grammars/LdapMessageGrammar.java
Date Sun, 26 Jun 2005 20:23:55 GMT
Author: elecharny
Date: Sun Jun 26 13:23:55 2005
New Revision: 201904

URL: http://svn.apache.org/viewcvs?rev=201904&view=rev
Log:
Added the ModifyRequest 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=201904&r1=201903&r2=201904&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 Jun 26 13:23:55 2005
@@ -141,6 +141,7 @@
         // If the Tag is 0x63, then it's a SearchRequest.
         // If the Tag is 0x64, then it's a SearchResultEntry.
         // 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 0x69, then it's an AddResponse.
         // If the Tag is 0x6B, then it's a DelResponse.
@@ -212,6 +213,16 @@
         // We have to switch to the SearchResultDone grammar
         super.transitions[LdapStatesEnum.PROTOCOL_OP_TAG][0x65] = new GrammarTransition(
                 LdapStatesEnum.PROTOCOL_OP_TAG, LdapStatesEnum.SEARCH_RESULT_DONE_GRAMMAR_SWITCH,
+                null );
+
+        //--------------------------------------------------------------------------------------------
+        // ModifyRequest Message.
+        //--------------------------------------------------------------------------------------------
+        // LdapMessage ::= ... ModifyRequest ...
+        // ModifyRequest ::= [APPLICATION 6] SEQUENCE { ... (Tag)
+        // We have to switch to the ModifyRequest grammar
+        super.transitions[LdapStatesEnum.PROTOCOL_OP_TAG][0x66] = new GrammarTransition(
+                LdapStatesEnum.PROTOCOL_OP_TAG, LdapStatesEnum.MODIFY_REQUEST_GRAMMAR_SWITCH,
                 null );
 
         //--------------------------------------------------------------------------------------------



Mime
View raw message