directory-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From elecha...@apache.org
Subject svn commit: r178093 - /directory/sandbox/trunk/asn1-new-codec/src/java/org/apache/asn1/ldap/codec/LdapMessageContainer.java
Date Tue, 24 May 2005 06:32:40 GMT
Author: elecharny
Date: Mon May 23 23:32:40 2005
New Revision: 178093

URL: http://svn.apache.org/viewcvs?rev=178093&view=rev
Log:
- Suppressed the pooling mechanism
- added the UnbindRequest grammar handling

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=178093&r1=178092&r2=178093&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
Mon May 23 23:32:40 2005
@@ -25,6 +25,7 @@
 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.codec.grammars.UnBindRequestGrammar;
 import org.apache.asn1.ldap.pojo.LdapMessagePOJO;
 
 
@@ -61,34 +62,12 @@
         grammars[LdapStatesEnum.BIND_REQUEST_GRAMMAR] = BindRequestGrammar.getInstance();

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

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

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

 
         grammarStack[currentGrammar] = grammars[LdapStatesEnum.LDAP_MESSAGE_GRAMMAR];
     }
 
     //~ Methods ------------------------------------------------------------------------------------
-
-    /**
-     * Release the LdapMessage POJO
-     */
-    public void free()
-    {
-        state      = 0;
-        transition = 0;
-        ldapMessage.free();
-        
-        for (int i = 0; i <= currentGrammar; i++ )
-        {
-            grammarStack[i] = null;
-        }
-        
-        currentGrammar = 0;
-        nbGrammars = 0;
-
-        grammarStack[currentGrammar] = grammars[LdapStatesEnum.LDAP_MESSAGE_GRAMMAR];
-        
-        super.free();
-    }
-
     /**
      * @return Returns the ldapMessage.
      */



Mime
View raw message