directory-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From elecha...@apache.org
Subject svn commit: r164352 - /directory/sandbox/trunk/asn1-new-codec/src/java/org/apache/asn1/ldap/codec/LdapMessageContainer.java
Date Sat, 23 Apr 2005 07:40:02 GMT
Author: elecharny
Date: Sat Apr 23 00:40:01 2005
New Revision: 164352

URL: http://svn.apache.org/viewcvs?rev=164352&view=rev
Log:
Changed from StatesEnum to LdapStatesEnum

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=164352&r1=164351&r2=164352&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
Sat Apr 23 00:40:01 2005
@@ -19,12 +19,12 @@
 import org.apache.asn1.ber.AbstractContainer;
 import org.apache.asn1.ber.containers.IAsn1Container;
 import org.apache.asn1.ber.grammar.IGrammar;
-import org.apache.asn1.ber.grammar.StatesEnum;
 import org.apache.asn1.ldap.codec.grammars.BindRequestGrammar;
 import org.apache.asn1.ldap.codec.grammars.BindResponseGrammar;
 import org.apache.asn1.ldap.codec.grammars.LdapControlGrammar;
 import org.apache.asn1.ldap.codec.grammars.LdapMessageGrammar;
 import org.apache.asn1.ldap.codec.grammars.LdapResultGrammar;
+import org.apache.asn1.ldap.codec.grammars.LdapStatesEnum;
 import org.apache.asn1.ldap.pojo.LdapMessagePOJO;
 
 
@@ -56,13 +56,13 @@
         grammarStack = new IGrammar[10];
         nbGrammars = 0;
 
-        grammars[StatesEnum.LDAP_MESSAGE_GRAMMAR] = LdapMessageGrammar.getInstance(); 
-        grammars[StatesEnum.LDAP_CONTROL_GRAMMAR] = LdapControlGrammar.getInstance(); 
-        grammars[StatesEnum.BIND_REQUEST_GRAMMAR] = BindRequestGrammar.getInstance(); 
-        grammars[StatesEnum.LDAP_RESULT_GRAMMAR]  = LdapResultGrammar.getInstance(); 
-        grammars[StatesEnum.BIND_RESPONSE_GRAMMAR] = BindResponseGrammar.getInstance(); 
+        grammars[LdapStatesEnum.LDAP_MESSAGE_GRAMMAR] = LdapMessageGrammar.getInstance();

+        grammars[LdapStatesEnum.LDAP_CONTROL_GRAMMAR] = LdapControlGrammar.getInstance();

+        grammars[LdapStatesEnum.BIND_REQUEST_GRAMMAR] = BindRequestGrammar.getInstance();

+        grammars[LdapStatesEnum.LDAP_RESULT_GRAMMAR]  = LdapResultGrammar.getInstance();

+        grammars[LdapStatesEnum.BIND_RESPONSE_GRAMMAR] = BindResponseGrammar.getInstance();

 
-        grammarStack[currentGrammar] = grammars[StatesEnum.LDAP_MESSAGE_GRAMMAR];
+        grammarStack[currentGrammar] = grammars[LdapStatesEnum.LDAP_MESSAGE_GRAMMAR];
     }
 
     //~ Methods ------------------------------------------------------------------------------------
@@ -84,7 +84,7 @@
         currentGrammar = 0;
         nbGrammars = 0;
 
-        grammarStack[currentGrammar] = grammars[StatesEnum.LDAP_MESSAGE_GRAMMAR];
+        grammarStack[currentGrammar] = grammars[LdapStatesEnum.LDAP_MESSAGE_GRAMMAR];
         
         super.free();
     }



Mime
View raw message