directory-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From elecha...@apache.org
Subject svn commit: r209136 - /directory/sandbox/trunk/asn1-new-codec/src/java/org/apache/asn1/ldap/codec/grammars/LdapResultGrammar.java
Date Mon, 04 Jul 2005 22:36:31 GMT
Author: elecharny
Date: Mon Jul  4 15:36:27 2005
New Revision: 209136

URL: http://svn.apache.org/viewcvs?rev=209136&view=rev
Log:
Changed the code to reflect the change of referrals, which are now LdapURL instead of LdapString.

Modified:
    directory/sandbox/trunk/asn1-new-codec/src/java/org/apache/asn1/ldap/codec/grammars/LdapResultGrammar.java

Modified: directory/sandbox/trunk/asn1-new-codec/src/java/org/apache/asn1/ldap/codec/grammars/LdapResultGrammar.java
URL: http://svn.apache.org/viewcvs/directory/sandbox/trunk/asn1-new-codec/src/java/org/apache/asn1/ldap/codec/grammars/LdapResultGrammar.java?rev=209136&r1=209135&r2=209136&view=diff
==============================================================================
--- directory/sandbox/trunk/asn1-new-codec/src/java/org/apache/asn1/ldap/codec/grammars/LdapResultGrammar.java
(original)
+++ directory/sandbox/trunk/asn1-new-codec/src/java/org/apache/asn1/ldap/codec/grammars/LdapResultGrammar.java
Mon Jul  4 15:36:27 2005
@@ -27,6 +27,7 @@
 import org.apache.asn1.ldap.codec.LdapMessageContainer;
 import org.apache.asn1.ldap.codec.primitives.LdapDN;
 import org.apache.asn1.ldap.codec.primitives.LdapString;
+import org.apache.asn1.ldap.codec.primitives.LdapURL;
 import org.apache.asn1.ldap.codec.utils.IntegerDecoder;
 import org.apache.asn1.ldap.codec.utils.LdapResultEnum;
 import org.apache.asn1.ldap.pojo.LdapMessage;
@@ -359,11 +360,11 @@
 
                         if (tlv.getLength().getLength() == 0)
                         {
-                            ldapResult.addReferral( LdapString.EMPTY_STRING );
+                            ldapResult.addReferral( LdapURL.EMPTY_STRING );
                         }
                         else
                         {
-                            ldapResult.addReferral( new LdapString( tlv.getValue().getData()
) );
+                            ldapResult.addReferral( new LdapURL( tlv.getValue().getData()
) );
                         }
                     }
                 } );



Mime
View raw message