directory-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From kayyag...@apache.org
Subject svn commit: r905607 - in /directory/clients/ldap/trunk/ldap-client-api/src/main/java/org/apache/directory/ldap/client/api: LdapConnection.java PoolableLdapConnectionFactory.java
Date Tue, 02 Feb 2010 12:32:26 GMT
Author: kayyagari
Date: Tue Feb  2 12:32:23 2010
New Revision: 905607

URL: http://svn.apache.org/viewvc?rev=905607&view=rev
Log:
renamed the isSessionValid() to isBound()

Modified:
    directory/clients/ldap/trunk/ldap-client-api/src/main/java/org/apache/directory/ldap/client/api/LdapConnection.java
    directory/clients/ldap/trunk/ldap-client-api/src/main/java/org/apache/directory/ldap/client/api/PoolableLdapConnectionFactory.java

Modified: directory/clients/ldap/trunk/ldap-client-api/src/main/java/org/apache/directory/ldap/client/api/LdapConnection.java
URL: http://svn.apache.org/viewvc/directory/clients/ldap/trunk/ldap-client-api/src/main/java/org/apache/directory/ldap/client/api/LdapConnection.java?rev=905607&r1=905606&r2=905607&view=diff
==============================================================================
--- directory/clients/ldap/trunk/ldap-client-api/src/main/java/org/apache/directory/ldap/client/api/LdapConnection.java
(original)
+++ directory/clients/ldap/trunk/ldap-client-api/src/main/java/org/apache/directory/ldap/client/api/LdapConnection.java
Tue Feb  2 12:32:23 2010
@@ -216,7 +216,7 @@
      *
      * @return <code>true</code> if the session is valid.
      */
-    public boolean isSessionValid()
+    public boolean isBound()
     {
         return ( ldapSession != null ) && ldapSession.isConnected();
     }
@@ -235,7 +235,7 @@
             throw new InvalidConnectionException( "Cannot connect on the server, the connection
is null" );
         }
 
-        if ( !isSessionValid() )
+        if ( !isBound() )
         {
             throw new InvalidConnectionException( "Cannot connect on the server, the connection
is invalid" );
         }

Modified: directory/clients/ldap/trunk/ldap-client-api/src/main/java/org/apache/directory/ldap/client/api/PoolableLdapConnectionFactory.java
URL: http://svn.apache.org/viewvc/directory/clients/ldap/trunk/ldap-client-api/src/main/java/org/apache/directory/ldap/client/api/PoolableLdapConnectionFactory.java?rev=905607&r1=905606&r2=905607&view=diff
==============================================================================
--- directory/clients/ldap/trunk/ldap-client-api/src/main/java/org/apache/directory/ldap/client/api/PoolableLdapConnectionFactory.java
(original)
+++ directory/clients/ldap/trunk/ldap-client-api/src/main/java/org/apache/directory/ldap/client/api/PoolableLdapConnectionFactory.java
Tue Feb  2 12:32:23 2010
@@ -105,7 +105,7 @@
         LOG.debug( "validating {}", obj );
 
         LdapConnection connection = ( LdapConnection ) obj;
-        return connection.isSessionValid();
+        return connection.isBound();
     }
 
 }



Mime
View raw message