directory-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From elecha...@apache.org
Subject svn commit: r179538 - /directory/sandbox/trunk/asn1-new-codec/src/java/org/apache/asn1/ldap/codec/grammars/LdapMessageGrammar.java
Date Thu, 02 Jun 2005 07:06:06 GMT
Author: elecharny
Date: Thu Jun  2 00:06:05 2005
New Revision: 179538

URL: http://svn.apache.org/viewcvs?rev=179538&view=rev
Log:
Added the ModifyResponse 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=179538&r1=179537&r2=179538&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
Thu Jun  2 00:06:05 2005
@@ -179,6 +179,7 @@
         // 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. 
+        // If the Tag is 0x67, then it's a ModifyResponse. 
         // 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. 
@@ -215,6 +216,14 @@
         // BindResponse ::= [APPLICATION 1] SEQUENCE { ... (Tag)
         // We have to switch to the BindResponse grammar
         super.transitions[LdapStatesEnum.PROTOCOL_OP_TAG][0x61] = new GrammarTransition(
LdapStatesEnum.PROTOCOL_OP_TAG, LdapStatesEnum.BIND_RESPONSE_GRAMMAR_SWITCH, null);
+
+        //--------------------------------------------------------------------------------------------
+        // ModifydResponse Message.
+        //--------------------------------------------------------------------------------------------
+        // LdapMessage ::= ... ModifyResponse ...
+        // ModifyResponse ::= [APPLICATION 7] SEQUENCE { ... (Tag)
+        // We have to switch to the ModifyResponse grammar
+        super.transitions[LdapStatesEnum.PROTOCOL_OP_TAG][0x67] = new GrammarTransition(
LdapStatesEnum.PROTOCOL_OP_TAG, LdapStatesEnum.MODIFY_RESPONSE_GRAMMAR_SWITCH, null);
 
         //--------------------------------------------------------------------------------------------
         // AddResponse Message.



Mime
View raw message