directory-commits mailing list archives

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

URL: http://svn.apache.org/viewcvs?rev=178103&view=rev
Log:
Suppressed the pooling mechanism

Modified:
    directory/sandbox/trunk/asn1-new-codec/src/java/org/apache/asn1/spnego/codec/SpnegoContainer.java
    directory/sandbox/trunk/asn1-new-codec/src/java/org/apache/asn1/spnego/codec/SpnegoDecoder.java

Modified: directory/sandbox/trunk/asn1-new-codec/src/java/org/apache/asn1/spnego/codec/SpnegoContainer.java
URL: http://svn.apache.org/viewcvs/directory/sandbox/trunk/asn1-new-codec/src/java/org/apache/asn1/spnego/codec/SpnegoContainer.java?rev=178103&r1=178102&r2=178103&view=diff
==============================================================================
--- directory/sandbox/trunk/asn1-new-codec/src/java/org/apache/asn1/spnego/codec/SpnegoContainer.java
(original)
+++ directory/sandbox/trunk/asn1-new-codec/src/java/org/apache/asn1/spnego/codec/SpnegoContainer.java
Mon May 23 23:37:32 2005
@@ -60,29 +60,6 @@
     //~ Methods ------------------------------------------------------------------------------------
 
     /**
-     * Release the Spnego POJO
-     */
-    public void free()
-    {
-        state      = 0;
-        transition = 0;
-        spnego.free();
-        spnego = null;
-        
-        for (int i = 0; i <= currentGrammar; i++ )
-        {
-            grammarStack[i] = null;
-        }
-        
-        currentGrammar = 0;
-        nbGrammars = 0;
-
-        grammarStack[currentGrammar] = grammars[SpnegoStatesEnum.SPNEGO_GRAMMAR];
-        
-        super.free();
-    }
-
-    /**
      * @return Returns the spnego.
      */
     public SpnegoPOJO getSpnego()

Modified: directory/sandbox/trunk/asn1-new-codec/src/java/org/apache/asn1/spnego/codec/SpnegoDecoder.java
URL: http://svn.apache.org/viewcvs/directory/sandbox/trunk/asn1-new-codec/src/java/org/apache/asn1/spnego/codec/SpnegoDecoder.java?rev=178103&r1=178102&r2=178103&view=diff
==============================================================================
--- directory/sandbox/trunk/asn1-new-codec/src/java/org/apache/asn1/spnego/codec/SpnegoDecoder.java
(original)
+++ directory/sandbox/trunk/asn1-new-codec/src/java/org/apache/asn1/spnego/codec/SpnegoDecoder.java
Mon May 23 23:37:32 2005
@@ -17,23 +17,6 @@
 package org.apache.asn1.spnego.codec;
 
 import org.apache.asn1.ber.Asn1Decoder;
-import org.apache.asn1.ber.tlv.TLVFactory;
-import org.apache.asn1.ber.tlv.TLVPoolEnum;
-import org.apache.asn1.primitives.factories.BitStringFactory;
-import org.apache.asn1.primitives.factories.OIDFactory;
-import org.apache.asn1.primitives.factories.OctetStringFactory;
-import org.apache.asn1.spnego.pojo.factories.SpnegoNegTokenInitPOJOFactory;
-import org.apache.asn1.spnego.pojo.factories.SpnegoNegTokenTargPOJOFactory;
-import org.apache.asn1.util.MutableString1024Factory;
-import org.apache.asn1.util.MutableString128Factory;
-import org.apache.asn1.util.MutableString16Factory;
-import org.apache.asn1.util.MutableString256Factory;
-import org.apache.asn1.util.MutableString32Factory;
-import org.apache.asn1.util.MutableString512Factory;
-import org.apache.asn1.util.MutableString64Factory;
-import org.apache.asn1.util.MutableStringFactory;
-import org.apache.asn1.util.pools.LocalPoolManager;
-import org.apache.asn1.util.pools.PoolEnum;
 
 /**
  * The Spnego decoder. This class does the initialisation of the object's pools.
@@ -49,40 +32,5 @@
      */
     public SpnegoDecoder()
     {
-        this(true);
-    }
-    
-    /**
-     * LdapDecoder constructor.
-     * 
-     * @param isPooled Tells if the objects are allocated or pooled. 
-     */
-    public SpnegoDecoder(boolean isPooled)
-    {
-        // We have to create the pools, which are MutableString
-        // pools. We will initialize 60 pools, because we will
-        // use TLV pools, String pools and Ldap pools
-        poolMgr = new LocalPoolManager( 60, true );
-
-        // Standard ASN.1 pools
-        poolMgr.initPool(TLVPoolEnum.TLV_POOL, new TLVFactory(), 1024, 10240);
-        poolMgr.initPool(PoolEnum.OID_POOL, new OIDFactory(), 1024, 1024);
-        poolMgr.initPool(PoolEnum.OCTET_STRING_POOL, new OctetStringFactory(), 1024, 1024);
-        poolMgr.initPool(PoolEnum.BIT_STRING_POOL, new BitStringFactory(), 1024, 1024);
-        
-        // String pools
-        poolMgr.initPool(PoolEnum.STRING_POOL_16, new MutableString16Factory(), 1024, 1024);
-        poolMgr.initPool(PoolEnum.STRING_POOL_32, new MutableString32Factory(), 1024, 1024);
-        poolMgr.initPool(PoolEnum.STRING_POOL_64, new MutableString64Factory(), 1024, 1024);
-        poolMgr.initPool(PoolEnum.STRING_POOL_128, new MutableString128Factory(), 1024, 1024);
-        poolMgr.initPool(PoolEnum.STRING_POOL_256, new MutableString256Factory(), 1024, 1024);
-        poolMgr.initPool(PoolEnum.STRING_POOL_512, new MutableString512Factory(), 1024, 1024);
-        poolMgr.initPool(PoolEnum.STRING_POOL_1024, new MutableString1024Factory(), 1024,
1024);
-        poolMgr.initPool(PoolEnum.STREAMED_STRING_POOL, new MutableStringFactory(), 1024,
1024);
-        
-        // Spnego pools
-        poolMgr.initPool(SpnegoPoolEnum.SPNEGO_CONTAINER_POOL, new SpnegoContainerFactory(),
1024, 1024);
-        poolMgr.initPool(SpnegoPoolEnum.SPNEGO_NEG_TOKEN_INIT_POJO_POOL, new SpnegoNegTokenInitPOJOFactory(),
1024, 1024);
-        poolMgr.initPool(SpnegoPoolEnum.SPNEGO_NEG_TOKEN_TARG_POJO_POOL, new SpnegoNegTokenTargPOJOFactory(),
1024, 1024);
     }
 }



Mime
View raw message