directory-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From elecha...@apache.org
Subject svn commit: r408161 - /directory/branches/elecharny/shared/ldap/src/main/java/org/apache/directory/shared/ldap/codec/modify/ModifyRequest.java
Date Sun, 21 May 2006 12:22:46 GMT
Author: elecharny
Date: Sun May 21 05:22:45 2006
New Revision: 408161

URL: http://svn.apache.org/viewvc?rev=408161&view=rev
Log:
Added a method addAttributeTypeAndValues which takes a String instead of a LdapString

Modified:
    directory/branches/elecharny/shared/ldap/src/main/java/org/apache/directory/shared/ldap/codec/modify/ModifyRequest.java

Modified: directory/branches/elecharny/shared/ldap/src/main/java/org/apache/directory/shared/ldap/codec/modify/ModifyRequest.java
URL: http://svn.apache.org/viewvc/directory/branches/elecharny/shared/ldap/src/main/java/org/apache/directory/shared/ldap/codec/modify/ModifyRequest.java?rev=408161&r1=408160&r2=408161&view=diff
==============================================================================
--- directory/branches/elecharny/shared/ldap/src/main/java/org/apache/directory/shared/ldap/codec/modify/ModifyRequest.java
(original)
+++ directory/branches/elecharny/shared/ldap/src/main/java/org/apache/directory/shared/ldap/codec/modify/ModifyRequest.java
Sun May 21 05:22:45 2006
@@ -165,7 +165,18 @@
      */
     public void addAttributeTypeAndValues( LdapString type )
     {
-        currentAttribute = new BasicAttribute( StringTools.lowerCase( type.getString() )
);
+        addAttributeTypeAndValues( type.getString() );
+    }
+
+    /**
+     * Add a new attributeTypeAndValue
+     * 
+     * @param type
+     *            The attribute's name
+     */
+    public void addAttributeTypeAndValues( String type )
+    {
+        currentAttribute = new BasicAttribute( StringTools.lowerCase( type ) );
 
         int operation = 0;
 



Mime
View raw message