directory-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From elecha...@apache.org
Subject svn commit: r441704 - /directory/sandbox/akarasulu/apacheds-2.0/shared/ldap/src/main/java/org/apache/directory/shared/ldap/name/LdapDN.java
Date Sat, 09 Sep 2006 00:53:34 GMT
Author: elecharny
Date: Fri Sep  8 17:53:33 2006
New Revision: 441704

URL: http://svn.apache.org/viewvc?view=rev&rev=441704
Log:
Added a temporary constructor with a String as an argument.

Modified:
    directory/sandbox/akarasulu/apacheds-2.0/shared/ldap/src/main/java/org/apache/directory/shared/ldap/name/LdapDN.java

Modified: directory/sandbox/akarasulu/apacheds-2.0/shared/ldap/src/main/java/org/apache/directory/shared/ldap/name/LdapDN.java
URL: http://svn.apache.org/viewvc/directory/sandbox/akarasulu/apacheds-2.0/shared/ldap/src/main/java/org/apache/directory/shared/ldap/name/LdapDN.java?view=diff&rev=441704&r1=441703&r2=441704
==============================================================================
--- directory/sandbox/akarasulu/apacheds-2.0/shared/ldap/src/main/java/org/apache/directory/shared/ldap/name/LdapDN.java
(original)
+++ directory/sandbox/akarasulu/apacheds-2.0/shared/ldap/src/main/java/org/apache/directory/shared/ldap/name/LdapDN.java
Fri Sep  8 17:53:33 2006
@@ -6,6 +6,7 @@
 import javax.naming.InvalidNameException;
 import javax.naming.Name;
 
+import org.apache.directory.shared.ldap.utils.StringTools;
 import org.slf4j.Logger;
 import org.slf4j.LoggerFactory;
 
@@ -25,6 +26,11 @@
 
     /** The bytes representation of the normName */
     private byte[] bytes;
+    
+    public LdapDN( String dn )
+    {
+        bytes = StringTools.getBytesUtf8( dn );
+    }
 
     /**
      * Determines whether this name is empty. An empty name is one with zero



Mime
View raw message