nu.zoom.ldap.eon.connection.password
Class AnonymousConnection

java.lang.Object
  extended by nu.zoom.ldap.eon.connection.password.AnonymousConnection
All Implemented Interfaces:
Serializable, Connection, ConnectionInformation
Direct Known Subclasses:
UserConnection

public class AnonymousConnection
extends Object
implements Connection, Serializable

Version:
$Revision: 1.5 $
Author:
$Author: johan $
See Also:
Serialized Form

Constructor Summary
AnonymousConnection()
           
 
Method Summary
 InitialLdapContext getConnection()
           
 String getDescription()
          Get a description of the connection.
 ConnectionGUID getGUID()
          The unique ID for this connection.
 String getHost()
           
 int getPort()
           
 String getRootContext()
           
 void setDescription(String description)
           
 void setGUID(ConnectionGUID id)
           
 void setHost(String host)
           
 void setPort(int port)
           
 void setRootContext(String rootContext)
           
protected  void setupEnvironment(Hashtable env)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AnonymousConnection

public AnonymousConnection()
Method Detail

getGUID

public ConnectionGUID getGUID()
Description copied from interface: ConnectionInformation
The unique ID for this connection. The ID is used by EON to refer to different connections.

Specified by:
getGUID in interface ConnectionInformation
Returns:
The id

getConnection

public InitialLdapContext getConnection()
                                 throws BackendException
Specified by:
getConnection in interface Connection
Throws:
BackendException

setupEnvironment

protected void setupEnvironment(Hashtable env)

getHost

public String getHost()

getPort

public int getPort()

setHost

public void setHost(String host)

setGUID

public void setGUID(ConnectionGUID id)

setPort

public void setPort(int port)

getDescription

public String getDescription()
Description copied from interface: ConnectionInformation
Get a description of the connection. This is used to let the user know which connection this is. It should preferrably contain information that lets the user know which host and by which identity the connection is made.

Specified by:
getDescription in interface ConnectionInformation
Returns:
A human readable description of the connection instance.

setDescription

public void setDescription(String description)

getRootContext

public String getRootContext()

setRootContext

public void setRootContext(String rootContext)


Copyright © 2011. All Rights Reserved.