directory-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From elecha...@apache.org
Subject svn commit: r179313 - /directory/sandbox/trunk/asn1-new-codec/src/java/org/apache/asn1/ldap/codec/grammars/LdapMessageGrammar.java
Date Tue, 31 May 2005 23:47:08 GMT
Author: elecharny
Date: Tue May 31 16:47:08 2005
New Revision: 179313

URL: http://svn.apache.org/viewcvs?rev=179313&view=rev
Log:
- Added a transition from this grammar to AddResponse ones.
- reformating some code.

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=179313&r1=179312&r2=179313&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 16:47:08 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 0x69, then it's a AddResponse. 
         //********************************************************************************************
         
         //--------------------------------------------------------------------------------------------
@@ -212,6 +213,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);
+
+        //--------------------------------------------------------------------------------------------
+        // AddResponse Message.
+        //--------------------------------------------------------------------------------------------
+        // LdapMessage ::= ... AddResponse ...
+        // 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);
 
     }
 }



Mime
View raw message