|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.ldaptive.AbstractConfig
org.ldaptive.ConnectionConfig
public class ConnectionConfig
Contains all the configuration data needed to control connections.
| Field Summary |
|---|
| Fields inherited from class org.ldaptive.AbstractConfig |
|---|
logger |
| Constructor Summary | |
|---|---|
ConnectionConfig()
Default constructor. |
|
ConnectionConfig(String url)
Creates a new connection config. |
|
| Method Summary | |
|---|---|
ConnectionInitializer |
getConnectionInitializer()
Returns the connection initializer. |
long |
getConnectTimeout()
Returns the connect timeout. |
String |
getConnectTimeoutDuration()
Returns the connect timeout as a duration. |
String |
getLdapUrl()
Returns the ldap url. |
long |
getResponseTimeout()
Returns the response timeout. |
String |
getResponseTimeoutDuration()
Returns the response timeout as a duration. |
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 |
setConnectTimeoutDuration(String time)
Sets the maximum amount of time that connects will block. |
void |
setLdapUrl(String url)
Sets the ldap url. |
void |
setResponseTimeout(long time)
Sets the maximum amount of time that operations will wait for a response. |
void |
setResponseTimeoutDuration(String time)
Sets the maximum amount of time 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()
|
| Methods inherited from class org.ldaptive.AbstractConfig |
|---|
checkImmutable, checkStringInput, makeImmutable |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public ConnectionConfig()
public ConnectionConfig(String url)
url - to connect to| Method Detail |
|---|
public String getLdapUrl()
public void setLdapUrl(String url)
url - of the ldappublic long getConnectTimeout()
public void setConnectTimeout(long time)
time - timeout for connectspublic String getConnectTimeoutDuration()
public void setConnectTimeoutDuration(String time)
time - in duration sytanx or in millisecondspublic long getResponseTimeout()
public void setResponseTimeout(long time)
time - in duration syntax or in millisecondspublic String getResponseTimeoutDuration()
public void setResponseTimeoutDuration(String 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 from
public String toString()
toString in class Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||