org.apache.directory.ldap.client.api
Class LdapConnectionFactory

java.lang.Object
  extended by org.apache.directory.ldap.client.api.LdapConnectionFactory

public final class LdapConnectionFactory
extends Object

A LdapConnection factory.

Author:
Apache Directory Project

Method Summary
static LdapConnection getCoreSessionConnection()
          Gets the core session connection.
static LdapAsyncConnection getNetworkConnection(String host, int port)
          Gets the network connection.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getCoreSessionConnection

public static LdapConnection getCoreSessionConnection()
Gets the core session connection.

Returns:
a connection based on the the CoreSession

getNetworkConnection

public static LdapAsyncConnection getNetworkConnection(String host,
                                                       int port)
Gets the network connection.

Parameters:
host - the host
port - the port
Returns:
the LdapNetworkConnection


Copyright © 2009-2011 The Apache Software Foundation. All Rights Reserved.