本文整理了Java中com.unboundid.ldap.sdk.LDAPConnection.toString()
方法的一些代码示例,展示了LDAPConnection.toString()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。LDAPConnection.toString()
方法的具体详情如下:
包路径:com.unboundid.ldap.sdk.LDAPConnection
类名称:LDAPConnection
方法名:toString
[英]Retrieves a string representation of this LDAP connection.
[中]检索此LDAP连接的字符串表示形式。
代码示例来源:origin: com.unboundid/unboundid-ldapsdk-commercial-edition
/**
* Retrieves a timer for use with this connection, creating one if necessary.
*
* @return A timer for use with this connection.
*/
synchronized Timer getTimer()
{
if (timer == null)
{
timer = new Timer("Timer thread for " + toString(), true);
}
return timer;
}
代码示例来源:origin: com.unboundid/unboundid-ldapsdk-minimal-edition
/**
* Retrieves a timer for use with this connection, creating one if necessary.
*
* @return A timer for use with this connection.
*/
synchronized Timer getTimer()
{
if (timer == null)
{
timer = new Timer("Timer thread for " + toString(), true);
}
return timer;
}
代码示例来源:origin: com.unboundid/unboundid-ldapsdk-minimal-edition
/**
* Retrieves a string representation of this LDAP connection.
*
* @return A string representation of this LDAP connection.
*/
@Override()
public String toString()
{
final StringBuilder buffer = new StringBuilder();
toString(buffer);
return buffer.toString();
}
代码示例来源:origin: com.unboundid/unboundid-ldapsdk-commercial-edition
/**
* Retrieves a string representation of this LDAP connection.
*
* @return A string representation of this LDAP connection.
*/
@Override()
public String toString()
{
final StringBuilder buffer = new StringBuilder();
toString(buffer);
return buffer.toString();
}
代码示例来源:origin: com.unboundid/unboundid-ldapsdk-commercial-edition
/**
* Attempts to set the SO_TIMEOUT value for the connection. This will take
* effect for the next blocking operation that it starts.
*
* @param soTimeout The SO_TIMEOUT value that should be set for the
* connection. It must be greater than or equal to zero,
* with a value of zero meaning an unlimited timeout.
*
* @throws LDAPException If a problem is encountered while attempting to
* set the SO_TIMEOUT value.
*/
void setSoTimeout(final int soTimeout)
throws LDAPException
{
try
{
socket.setSoTimeout(soTimeout);
}
catch (final Exception e)
{
debugException(e);
throw new LDAPException(ResultCode.LOCAL_ERROR,
ERR_READER_CANNOT_SET_SO_TIMEOUT.get(soTimeout,
connection.toString(), getExceptionMessage(e)),
e);
}
}
代码示例来源:origin: com.unboundid/unboundid-ldapsdk-minimal-edition
/**
* Attempts to set the SO_TIMEOUT value for the connection. This will take
* effect for the next blocking operation that it starts.
*
* @param soTimeout The SO_TIMEOUT value that should be set for the
* connection. It must be greater than or equal to zero,
* with a value of zero meaning an unlimited timeout.
*
* @throws LDAPException If a problem is encountered while attempting to
* set the SO_TIMEOUT value.
*/
void setSoTimeout(final int soTimeout)
throws LDAPException
{
try
{
socket.setSoTimeout(soTimeout);
}
catch (final Exception e)
{
debugException(e);
throw new LDAPException(ResultCode.LOCAL_ERROR,
ERR_READER_CANNOT_SET_SO_TIMEOUT.get(soTimeout,
connection.toString(), getExceptionMessage(e)),
e);
}
}
内容来源于网络,如有侵权,请联系作者删除!