directory-commits mailing list archives

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

URL: http://svn.apache.org/viewcvs?rev=179314&view=rev
Log:
Added initialization of AddResponse grammar

Modified:
    directory/sandbox/trunk/asn1-new-codec/src/java/org/apache/asn1/ldap/codec/LdapMessageContainer.java

Modified: directory/sandbox/trunk/asn1-new-codec/src/java/org/apache/asn1/ldap/codec/LdapMessageContainer.java
URL: http://svn.apache.org/viewcvs/directory/sandbox/trunk/asn1-new-codec/src/java/org/apache/asn1/ldap/codec/LdapMessageContainer.java?rev=179314&r1=179313&r2=179314&view=diff
==============================================================================
--- directory/sandbox/trunk/asn1-new-codec/src/java/org/apache/asn1/ldap/codec/LdapMessageContainer.java
(original)
+++ directory/sandbox/trunk/asn1-new-codec/src/java/org/apache/asn1/ldap/codec/LdapMessageContainer.java
Tue May 31 16:47:45 2005
@@ -20,6 +20,7 @@
 import org.apache.asn1.ber.containers.IAsn1Container;
 import org.apache.asn1.ber.grammar.IGrammar;
 import org.apache.asn1.ldap.codec.grammars.AbandonRequestGrammar;
+import org.apache.asn1.ldap.codec.grammars.AddResponseGrammar;
 import org.apache.asn1.ldap.codec.grammars.BindRequestGrammar;
 import org.apache.asn1.ldap.codec.grammars.BindResponseGrammar;
 import org.apache.asn1.ldap.codec.grammars.LdapControlGrammar;
@@ -54,8 +55,9 @@
     {
         super( );
         currentGrammar = 0;
-        grammars = new IGrammar[10];
+        grammars = new IGrammar[LdapStatesEnum.NB_GRAMMARS];
         grammarStack = new IGrammar[10];
+        stateStack = new int[10];
         nbGrammars = 0;
 
         grammars[LdapStatesEnum.LDAP_MESSAGE_GRAMMAR] = LdapMessageGrammar.getInstance();

@@ -65,6 +67,7 @@
         grammars[LdapStatesEnum.BIND_RESPONSE_GRAMMAR] = BindResponseGrammar.getInstance();

         grammars[LdapStatesEnum.UNBIND_REQUEST_GRAMMAR] = UnBindRequestGrammar.getInstance();

         grammars[LdapStatesEnum.ABANDON_REQUEST_GRAMMAR] = AbandonRequestGrammar.getInstance();

+        grammars[LdapStatesEnum.ADD_RESPONSE_GRAMMAR] = AddResponseGrammar.getInstance();

 
         grammarStack[currentGrammar] = grammars[LdapStatesEnum.LDAP_MESSAGE_GRAMMAR];
     }



Mime
View raw message