com.unboundid.ldap.sdk.LDAPConnection.toString()方法的使用及代码示例

x33g5p2x  于2022-01-24 转载在 其他  
字(2.9k)|赞(0)|评价(0)|浏览(174)

本文整理了Java中com.unboundid.ldap.sdk.LDAPConnection.toString()方法的一些代码示例,展示了LDAPConnection.toString()的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。LDAPConnection.toString()方法的具体详情如下:
包路径:com.unboundid.ldap.sdk.LDAPConnection
类名称:LDAPConnection
方法名:toString

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);
 }
}

相关文章

LDAPConnection类方法