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 2007/08/25 18:27:30 UTC
svn commit: r569697 -
/directory/apacheds/trunk/protocol-ldap/src/main/java/org/apache/directory/server/ldap/support/SearchResponseIterator.java
Author: elecharny
Date: Sat Aug 25 09:27:29 2007
New Revision: 569697
URL: http://svn.apache.org/viewvc?rev=569697&view=rev
Log:
Used the newly declared constant for "ref"
Modified:
directory/apacheds/trunk/protocol-ldap/src/main/java/org/apache/directory/server/ldap/support/SearchResponseIterator.java
Modified: directory/apacheds/trunk/protocol-ldap/src/main/java/org/apache/directory/server/ldap/support/SearchResponseIterator.java
URL: http://svn.apache.org/viewvc/directory/apacheds/trunk/protocol-ldap/src/main/java/org/apache/directory/server/ldap/support/SearchResponseIterator.java?rev=569697&r1=569696&r2=569697&view=diff
==============================================================================
--- directory/apacheds/trunk/protocol-ldap/src/main/java/org/apache/directory/server/ldap/support/SearchResponseIterator.java (original)
+++ directory/apacheds/trunk/protocol-ldap/src/main/java/org/apache/directory/server/ldap/support/SearchResponseIterator.java Sat Aug 25 09:27:29 2007
@@ -34,6 +34,7 @@
import org.apache.directory.server.ldap.SessionRegistry;
import org.apache.directory.shared.ldap.codec.util.LdapURL;
import org.apache.directory.shared.ldap.codec.util.LdapURLEncodingException;
+import org.apache.directory.shared.ldap.constants.SchemaConstants;
import org.apache.directory.shared.ldap.exception.LdapException;
import org.apache.directory.shared.ldap.message.ManageDsaITControl;
import org.apache.directory.shared.ldap.message.Message;
@@ -102,7 +103,7 @@
* Now we have to build the prefetched object from the 'result'
* local variable for the following call to next()
*/
- Attribute ref = result.getAttributes().get( "ref" );
+ Attribute ref = result.getAttributes().get( SchemaConstants.REF_AT );
if ( !ctx.isReferral( result.getDn() )
|| req.getControls().containsKey( ManageDsaITControl.CONTROL_OID ) )
@@ -267,7 +268,7 @@
* Now we have to build the prefetched object from the 'result'
* local variable for the following call to next()
*/
- Attribute ref = result.getAttributes().get( "ref" );
+ Attribute ref = result.getAttributes().get( SchemaConstants.REF_AT );
boolean isReferral = false;
try
@@ -286,7 +287,7 @@
try
{
ref = ctx.getAttributes( result.getName(), new String[]
- { "ref" } ).get( "ref" );
+ { SchemaConstants.REF_AT } ).get( SchemaConstants.REF_AT );
}
catch ( NamingException e )
{