org.apache.ldap.clients.ldaptest
Class LdapTestSession

java.lang.Object
  extended by org.apache.ldap.clients.ldaptest.LdapTestSession

public class LdapTestSession
extends java.lang.Object

Interface into the LDAP TEST session. This will define a host session for the testing framework. Each session will have a host, port and bind information. These sessions are "where the tests are run".


Constructor Summary
LdapTestSession()
           
 
Method Summary
 java.lang.String getBindDn()
          Get the DN of the user name to bind to the server
 java.lang.String getBindPassword()
          Get the password of the bind user
 java.lang.String getHost()
          Get the hostname of the server for the session
 int getPort()
          Get the port to connect to on the ldap server
 java.lang.String getSessionDescription()
          Get the session description
 java.lang.String getSessionName()
          Get the session description
 boolean isAnnonBind()
          True if the session should bind annonymously
 void setAnnonBind(boolean a_b)
          True if the session should bind annonymously
 void setBindDn(java.lang.String a_string)
          Set the DN of the user name to bind to the server
 void setBindPassword(java.lang.String a_string)
          Set the password of the bind user
 void setHost(java.lang.String a_string)
          Set the hostname of the server for the session
 void setPort(int a_i)
          Set the port to connect to on the ldap server
 void setSessionDescription(java.lang.String a_string)
          Set the session description
 void setSessionName(java.lang.String a_string)
          Set the session name
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

LdapTestSession

public LdapTestSession()
Method Detail

getBindDn

public java.lang.String getBindDn()
Get the DN of the user name to bind to the server

Returns:
DN of the bind user

getBindPassword

public java.lang.String getBindPassword()
Get the password of the bind user

Returns:
password of the bind user

getHost

public java.lang.String getHost()
Get the hostname of the server for the session

Returns:
hostname of the server

getPort

public int getPort()
Get the port to connect to on the ldap server

Returns:
port the LDAP client should connect to on the server

isAnnonBind

public boolean isAnnonBind()
True if the session should bind annonymously

Returns:
True if the session should bind annonymously

getSessionDescription

public java.lang.String getSessionDescription()
Get the session description

Returns:
Session description

getSessionName

public java.lang.String getSessionName()
Get the session description

Returns:
Session description

setBindDn

public void setBindDn(java.lang.String a_string)
Set the DN of the user name to bind to the server

Parameters:
a_string - DN of the user name to bind to the server

setBindPassword

public void setBindPassword(java.lang.String a_string)
Set the password of the bind user

Parameters:
a_string - password of the bind user

setHost

public void setHost(java.lang.String a_string)
Set the hostname of the server for the session

Parameters:
a_string - hostname of the server for the session

setPort

public void setPort(int a_i)
Set the port to connect to on the ldap server

Parameters:
a_i - port to connect to on the ldap server

setAnnonBind

public void setAnnonBind(boolean a_b)
True if the session should bind annonymously

Parameters:
a_b - True if the session should bind annonymously

setSessionDescription

public void setSessionDescription(java.lang.String a_string)
Set the session description

Parameters:
a_string - session description

setSessionName

public void setSessionName(java.lang.String a_string)
Set the session name

Parameters:
a_string - session name