Nitido Inc.

com.nitido.directory.jndi
Class DirectoryFactoryImpl

java.lang.Object
  extended by com.nitido.directory.jndi.DirectoryFactoryImpl
All Implemented Interfaces:
DirectoryFactory

public class DirectoryFactoryImpl
extends java.lang.Object
implements DirectoryFactory

This DirectoryFactoryImpl class instantiates a Directory object that uses the Sun JNDI Directory extension.


Method Summary
 Directory createDirectory()
          Construct a Directory object, using localhost, port 389 and default base.
 Directory createDirectory(java.lang.String hostname)
          Construct a Directory object, using the port 389 and the default base.
 Directory createDirectory(java.lang.String hostname, int port)
          Construct a Directory object without connection
 Directory createDirectory(java.lang.String hostname, int port, java.lang.String base)
          Construct a Directory object.
static DirectoryFactoryImpl getInstance()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getInstance

public static DirectoryFactoryImpl getInstance()

createDirectory

public Directory createDirectory(java.lang.String hostname,
                                 int port,
                                 java.lang.String base)
                          throws java.lang.IllegalArgumentException
Description copied from interface: DirectoryFactory
Construct a Directory object.

Specified by:
createDirectory in interface DirectoryFactory
Parameters:
hostname - The name of the LDAP host to connect to.
port - The port number of the LDAP directory to connect to.
base - The default base to perform operations from in the directory.
Throws:
java.lang.IllegalArgumentException - This runtime exception is thrown if the parameters are illegal or invalid.

createDirectory

public Directory createDirectory(java.lang.String hostname,
                                 int port)
                          throws java.lang.IllegalArgumentException
Description copied from interface: DirectoryFactory
Construct a Directory object without connection

Specified by:
createDirectory in interface DirectoryFactory
Parameters:
hostname - The name of the LDAP host to connect to.
port - The port number of the LDAP directory to connect to.
Throws:
java.lang.IllegalArgumentException - This runtime exception is thrown if the parameters are illegal

createDirectory

public Directory createDirectory(java.lang.String hostname)
                          throws java.lang.IllegalArgumentException
Description copied from interface: DirectoryFactory
Construct a Directory object, using the port 389 and the default base.

Specified by:
createDirectory in interface DirectoryFactory
Parameters:
hostname - The name of the LDAP host to connect to.
Throws:
java.lang.IllegalArgumentException - This runtime exception is thrown if the parameters are illegal

createDirectory

public Directory createDirectory()
                          throws java.lang.IllegalArgumentException
Description copied from interface: DirectoryFactory
Construct a Directory object, using localhost, port 389 and default base.

Specified by:
createDirectory in interface DirectoryFactory
Throws:
java.lang.IllegalArgumentException - This runtime exception is thrown if the parameters are illegal or invalid.

Nitido NiM 2.5 Java API

These JavaDoc pages are generated for release/nim_2_5-2.5.44

Copyright © 1999-2009 Nitido Inc.    Proprietary and Confidential.    All Rights Reserved.