org.openmdx.resource.ldap.spi
Class ManagedConnection
java.lang.Object
org.openmdx.resource.ldap.spi.ManagedConnection
- All Implemented Interfaces:
- ManagedConnection
public class ManagedConnection
- extends Object
- implements ManagedConnection
Managed LDAP Connection
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ManagedConnection
public ManagedConnection(netscape.ldap.LDAPv3 physicalConnection,
PasswordCredential credential)
- Constructor
- Parameters:
credential - certificate - key -
addConnectionEventListener
public void addConnectionEventListener(ConnectionEventListener connectionEventListener)
- Specified by:
addConnectionEventListener in interface ManagedConnection
associateConnection
public void associateConnection(Object connection)
throws ResourceException
- Specified by:
associateConnection in interface ManagedConnection
- Throws:
ResourceException
cleanup
public void cleanup()
throws ResourceException
- Specified by:
cleanup in interface ManagedConnection
- Throws:
ResourceException
destroy
public void destroy()
throws ResourceException
- Specified by:
destroy in interface ManagedConnection
- Throws:
ResourceException
getConnection
public Object getConnection(Subject subject,
ConnectionRequestInfo connectionRequestInfo)
throws ResourceException
- Specified by:
getConnection in interface ManagedConnection
- Throws:
ResourceException
getLocalTransaction
public LocalTransaction getLocalTransaction()
throws ResourceException
- Specified by:
getLocalTransaction in interface ManagedConnection
- Throws:
ResourceException
getLogWriter
public PrintWriter getLogWriter()
throws ResourceException
- Specified by:
getLogWriter in interface ManagedConnection
- Throws:
ResourceException
getMetaData
public ManagedConnectionMetaData getMetaData()
throws ResourceException
- Specified by:
getMetaData in interface ManagedConnection
- Throws:
ResourceException
getXAResource
public XAResource getXAResource()
throws ResourceException
- Specified by:
getXAResource in interface ManagedConnection
- Throws:
ResourceException
removeConnectionEventListener
public void removeConnectionEventListener(ConnectionEventListener connectionEventListener)
- Specified by:
removeConnectionEventListener in interface ManagedConnection
setLogWriter
public void setLogWriter(PrintWriter logWriter)
throws ResourceException
- Specified by:
setLogWriter in interface ManagedConnection
- Throws:
ResourceException
matches
public boolean matches(PasswordCredential credential)
- Test whether the managed connection was created with the same credentials.
- Parameters:
credential -
- Returns:
true if the managed connection was created with the same credentials
This software is published under the BSD license. Copyright © 2003-2008, OMEX AG, Switzerland, All rights reserved. Use is subject to license terms.