directory-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From elecha...@apache.org
Subject svn commit: r329613 - /directory/shared/ldap/branches/shared-ldap-utf8/apache-provider/src/java/org/apache/ldap/common/berlib/asn1/SnickersProvider.java
Date Sun, 30 Oct 2005 19:56:09 GMT
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 );
     }
 
 



Mime
View raw message