You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@directory.apache.org by el...@apache.org on 2005/10/30 20:56:09 UTC

svn commit: r329613 - /directory/shared/ldap/branches/shared-ldap-utf8/apache-provider/src/java/org/apache/ldap/common/berlib/asn1/SnickersProvider.java

Author: elecharny
Date: Sun Oct 30 11:56:06 2005
New Revision: 329613

URL: http://svn.apache.org/viewcvs?rev=329613&view=rev
Log:
Transmitting the environment Hashtable to the constructor.

Modified:
    directory/shared/ldap/branches/shared-ldap-utf8/apache-provider/src/java/org/apache/ldap/common/berlib/asn1/SnickersProvider.java

Modified: directory/shared/ldap/branches/shared-ldap-utf8/apache-provider/src/java/org/apache/ldap/common/berlib/asn1/SnickersProvider.java
URL: http://svn.apache.org/viewcvs/directory/shared/ldap/branches/shared-ldap-utf8/apache-provider/src/java/org/apache/ldap/common/berlib/asn1/SnickersProvider.java?rev=329613&r1=329612&r2=329613&view=diff
==============================================================================
--- directory/shared/ldap/branches/shared-ldap-utf8/apache-provider/src/java/org/apache/ldap/common/berlib/asn1/SnickersProvider.java (original)
+++ directory/shared/ldap/branches/shared-ldap-utf8/apache-provider/src/java/org/apache/ldap/common/berlib/asn1/SnickersProvider.java Sun Oct 30 11:56:06 2005
@@ -17,6 +17,8 @@
 package org.apache.ldap.common.berlib.asn1;
 
 
+import java.util.Hashtable;
+
 import org.apache.ldap.common.message.spi.Provider;
 import org.apache.ldap.common.message.spi.ProviderDecoder;
 import org.apache.ldap.common.message.spi.ProviderEncoder;
@@ -89,7 +91,19 @@
      */
     public ProviderDecoder getDecoder() throws ProviderException
     {
-        return new SnickersDecoder( this );
+        return new SnickersDecoder( this, new Hashtable() );
+    }
+
+    /**
+     * Gets the decoder associated with this provider.
+     *
+     * @return the provider's decoder.
+     * @throws org.apache.ldap.common.message.spi.ProviderException
+     *          if the provider or its decoder cannot be found
+     */
+    public ProviderDecoder getDecoder( Hashtable env ) throws ProviderException
+    {
+        return new SnickersDecoder( this, env );
     }