public class ConnectionConfig extends AbstractConfig
logger| Constructor and Description |
|---|
ConnectionConfig()
Default constructor.
|
ConnectionConfig(String url)
Creates a new connection config.
|
| Modifier and Type | Method and Description |
|---|---|
ConnectionInitializer |
getConnectionInitializer()
Returns the connection initializer.
|
long |
getConnectTimeout()
Returns the connect timeout.
|
String |
getLdapUrl()
Returns the ldap url.
|
long |
getResponseTimeout()
Returns the response timeout.
|
SslConfig |
getSslConfig()
Returns the ssl config.
|
boolean |
getUseSSL()
Returns whether the SSL protocol will be used for connections.
|
boolean |
getUseStartTLS()
Returns whether startTLS will be used for connections.
|
static ConnectionConfig |
newConnectionConfig(ConnectionConfig config)
Returns a connection config initialized with the supplied config.
|
void |
setConnectionInitializer(ConnectionInitializer initializer)
Sets the connection initializer.
|
void |
setConnectTimeout(long time)
Sets the maximum amount of time in milliseconds that connects will block.
|
void |
setLdapUrl(String url)
Sets the ldap url.
|
void |
setResponseTimeout(long time)
Sets the maximum amount of time in milliseconds that operations will wait for a response.
|
void |
setSslConfig(SslConfig config)
Sets the ssl config.
|
void |
setUseSSL(boolean b)
Sets whether the SSL protocol will be used for connections.
|
void |
setUseStartTLS(boolean b)
Sets whether startTLS will be used for connections.
|
String |
toString() |
checkImmutable, checkStringInput, makeImmutablepublic ConnectionConfig()
public ConnectionConfig(String url)
url - to connect topublic String getLdapUrl()
public void setLdapUrl(String url)
url - of the ldappublic long getConnectTimeout()
public void setConnectTimeout(long time)
time - timeout for connectspublic long getResponseTimeout()
public void setResponseTimeout(long time)
time - timeout for responsespublic SslConfig getSslConfig()
public void setSslConfig(SslConfig config)
config - ssl configpublic boolean getUseSSL()
public void setUseSSL(boolean b)
b - whether the SSL protocol will be usedpublic boolean getUseStartTLS()
public void setUseStartTLS(boolean b)
b - whether startTLS will be usedpublic ConnectionInitializer getConnectionInitializer()
public void setConnectionInitializer(ConnectionInitializer initializer)
initializer - connection initializerpublic static ConnectionConfig newConnectionConfig(ConnectionConfig config)
config - connection config to read properties fromCopyright © 2023. All rights reserved.