|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.openmdx.resource.ldap.v3.AbstractConnectionFactory
public abstract class AbstractConnectionFactory
Managed LDAP Connection Factory
| Field Summary | |
|---|---|
protected static int |
DEFAULT_PROTOCOL_VERSION
Default LDAP protocol version |
| Constructor Summary | |
|---|---|
AbstractConnectionFactory()
|
|
| Method Summary | |
|---|---|
Object |
createConnectionFactory()
|
Object |
createConnectionFactory(ConnectionManager connectionManager)
|
boolean |
equals(Object that)
Overriding equals() is required. |
String |
getConnectionURL()
Retrieve connectionURL. |
protected PasswordCredential |
getCredential(Subject subject)
|
PrintWriter |
getLogWriter()
|
protected String |
getPassword()
Retrieve password. |
Integer |
getProtocolVersion()
|
String |
getUserName()
Retrieve userName. |
int |
hashCode()
Overriding hashCode() is required. |
protected ResourceException |
log(ResourceException exception)
Log and return an exception |
ManagedConnection |
matchManagedConnections(Set managedConnections,
Subject subject,
ConnectionRequestInfo connectionRequestInfo)
|
void |
setConnectionURL(String connectionURL)
Set connectionURL. |
void |
setLogWriter(PrintWriter logWriter)
|
void |
setPassword(String password)
Set password. |
void |
setProtocolVersion(Integer protocolVersion)
|
void |
setUserName(String userName)
Set userName. |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface javax.resource.spi.ManagedConnectionFactory |
|---|
createManagedConnection |
| Field Detail |
|---|
protected static int DEFAULT_PROTOCOL_VERSION
| Constructor Detail |
|---|
public AbstractConnectionFactory()
| Method Detail |
|---|
public final Object createConnectionFactory()
throws ResourceException
createConnectionFactory in interface ManagedConnectionFactoryResourceException
public final Object createConnectionFactory(ConnectionManager connectionManager)
throws ResourceException
createConnectionFactory in interface ManagedConnectionFactoryResourceException
public final PrintWriter getLogWriter()
throws ResourceException
getLogWriter in interface ManagedConnectionFactoryResourceException
public final ManagedConnection matchManagedConnections(Set managedConnections,
Subject subject,
ConnectionRequestInfo connectionRequestInfo)
throws ResourceException
matchManagedConnections in interface ManagedConnectionFactoryResourceException
protected PasswordCredential getCredential(Subject subject)
throws ResourceException
subject -
ResourceException
public final void setLogWriter(PrintWriter logWriter)
throws ResourceException
setLogWriter in interface ManagedConnectionFactoryResourceExceptionpublic final String getConnectionURL()
public final void setConnectionURL(String connectionURL)
connectionURL - The connectionURL to set.public Integer getProtocolVersion()
public void setProtocolVersion(Integer protocolVersion)
protected final ResourceException log(ResourceException exception)
an - exception
public final void setPassword(String password)
password - The password to set.protected final String getPassword()
public final String getUserName()
public final void setUserName(String userName)
userName - The userName to set.public boolean equals(Object that)
equals in interface ManagedConnectionFactoryequals in class Objectpublic int hashCode()
hashCode in interface ManagedConnectionFactoryhashCode in class Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||