directory-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From elecha...@apache.org
Subject svn commit: r678568 - /directory/apacheds/branches/bigbang/protocol-newldap/src/main/java/org/apache/directory/server/newldap/handlers/NewSearchHandler.java
Date Mon, 21 Jul 2008 21:02:09 GMT
Author: elecharny
Date: Mon Jul 21 14:02:09 2008
New Revision: 678568

URL: http://svn.apache.org/viewvc?rev=678568&view=rev
Log:
Simplified the ResponseDone generation for common case.

Modified:
    directory/apacheds/branches/bigbang/protocol-newldap/src/main/java/org/apache/directory/server/newldap/handlers/NewSearchHandler.java

Modified: directory/apacheds/branches/bigbang/protocol-newldap/src/main/java/org/apache/directory/server/newldap/handlers/NewSearchHandler.java
URL: http://svn.apache.org/viewvc/directory/apacheds/branches/bigbang/protocol-newldap/src/main/java/org/apache/directory/server/newldap/handlers/NewSearchHandler.java?rev=678568&r1=678567&r2=678568&view=diff
==============================================================================
--- directory/apacheds/branches/bigbang/protocol-newldap/src/main/java/org/apache/directory/server/newldap/handlers/NewSearchHandler.java
(original)
+++ directory/apacheds/branches/bigbang/protocol-newldap/src/main/java/org/apache/directory/server/newldap/handlers/NewSearchHandler.java
Mon Jul 21 14:02:09 2008
@@ -252,9 +252,9 @@
             }
 
             // At the end, we have to write a last message : a responseDone
-            SearchResponseDone respDone = ( SearchResponseDone ) req.getResultResponse();
-            respDone.getLdapResult().setResultCode( ResultCodeEnum.SUCCESS );
-            session.getIoSession().write( respDone );
+            LdapResult ldapResult = req.getResultResponse().getLdapResult();
+            ldapResult.setResultCode( ResultCodeEnum.SUCCESS );
+            session.getIoSession().write( req.getResultResponse() );
         }
         catch ( ReferralException e )
         {



Mime
View raw message