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

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

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

LDAPConnection.getConnectedPort介绍

[英]Retrieves the port of the directory server to which this connection is currently established.
[中]检索当前已建立此连接的目录服务器的端口。

代码示例

代码示例来源:origin: com.unboundid/unboundid-ldapsdk-commercial-edition

/**
 * Retrieves the port to which the connection is established.
 *
 * @return  The port to which the connection is established.
 */
public int getPort()
{
 return conn.getConnectedPort();
}

代码示例来源:origin: com.unboundid/unboundid-ldapsdk-minimal-edition

buffer.append(c.getConnectedAddress());
buffer.append(':');
buffer.append(c.getConnectedPort());
buffer.append("\" ");

代码示例来源:origin: com.unboundid/unboundid-ldapsdk-minimal-edition

buffer.append(c.getConnectedAddress());
buffer.append(':');
buffer.append(c.getConnectedPort());
buffer.append("\" ");

代码示例来源:origin: com.unboundid/unboundid-ldapsdk-commercial-edition

buffer.append(c.getConnectedAddress());
buffer.append(':');
buffer.append(c.getConnectedPort());
buffer.append("\" ");

代码示例来源:origin: com.unboundid/unboundid-ldapsdk-commercial-edition

buffer.append(c.getConnectedAddress());
buffer.append(':');
buffer.append(c.getConnectedPort());
buffer.append("\" ");

代码示例来源:origin: com.unboundid/unboundid-ldapsdk-minimal-edition

/**
 * Creates a new disconnect info object with the provided information.
 *
 * @param  connection  The connection with which this disconnect info object
 *                     is associated.  It must not be {@code null}.
 * @param  type        The disconnect type.  It must not be {@code null}.
 * @param  message     A message providing additional information about the
 *                     disconnect.  It may be {@code null} if no message is
 *                     available.
 * @param  cause       The exception that was caught to trigger the
 *                     disconnect.  It may be {@code null} if the disconnect
 *                     was not triggered by an exception.
 */
DisconnectInfo(final LDAPConnection connection, final DisconnectType type,
        final String message, final Throwable cause)
{
 Validator.ensureNotNull(connection);
 Validator.ensureNotNull(type);
 this.connection = connection;
 this.type       = type;
 this.message    = message;
 this.cause      = cause;
 handlerNotified = new AtomicBoolean(false);
 host = connection.getConnectedAddress();
 port = connection.getConnectedPort();
}

代码示例来源:origin: com.unboundid/unboundid-ldapsdk-commercial-edition

/**
 * Creates a new disconnect info object with the provided information.
 *
 * @param  connection  The connection with which this disconnect info object
 *                     is associated.  It must not be {@code null}.
 * @param  type        The disconnect type.  It must not be {@code null}.
 * @param  message     A message providing additional information about the
 *                     disconnect.  It may be {@code null} if no message is
 *                     available.
 * @param  cause       The exception that was caught to trigger the
 *                     disconnect.  It may be {@code null} if the disconnect
 *                     was not triggered by an exception.
 */
DisconnectInfo(final LDAPConnection connection, final DisconnectType type,
        final String message, final Throwable cause)
{
 Validator.ensureNotNull(connection);
 Validator.ensureNotNull(type);
 this.connection = connection;
 this.type       = type;
 this.message    = message;
 this.cause      = cause;
 handlerNotified = new AtomicBoolean(false);
 host = connection.getConnectedAddress();
 port = connection.getConnectedPort();
}

代码示例来源:origin: com.unboundid/unboundid-ldapsdk-commercial-edition

(ports[i] == conn.getConnectedPort()))

代码示例来源:origin: com.unboundid/unboundid-ldapsdk-minimal-edition

(port == conn.getConnectedPort()))

代码示例来源:origin: com.unboundid/unboundid-ldapsdk-commercial-edition

(port == conn.getConnectedPort()))

代码示例来源:origin: SourceLabOrg/kafka-webview

"Server running at: ldap://{}:{}/{}",
  server.getConnection("LDAP").getConnectedAddress(),
  server.getConnection("LDAP").getConnectedPort(),
  baseDn
);

代码示例来源:origin: com.unboundid/unboundid-ldapsdk-commercial-edition

connection.getConnectedPort(),
connection.getLastUsedSocketFactory(),
connection.getConnectionOptions());

代码示例来源:origin: com.unboundid/unboundid-ldapsdk-minimal-edition

connection.getConnectedPort(),
connection.getLastUsedSocketFactory(),
connection.getConnectionOptions());

代码示例来源:origin: com.unboundid/unboundid-ldapsdk-commercial-edition

connection.getConnectedPort(),
connection.getLastUsedSocketFactory(),
connection.getConnectionOptions());

代码示例来源:origin: com.unboundid/unboundid-ldapsdk-commercial-edition

WARN_MOVE_SUBTREE_INTERRUPT_MSG_ENTRIES_ADDED_TO_TARGET.get(
  baseDN, targetConnection.getConnectedAddress(),
  targetConnection.getConnectedPort(),
  sourceConnection.getConnectedAddress(),
  sourceConnection.getConnectedPort()));

代码示例来源:origin: com.unboundid/unboundid-ldapsdk-commercial-edition

connection.getConnectedPort());

代码示例来源:origin: com.unboundid/unboundid-ldapsdk-commercial-edition

connection.getConnectedPort());

代码示例来源:origin: com.unboundid/unboundid-ldapsdk-commercial-edition

(sourceConnection.getConnectedPort() ==
   targetConnection.getConnectedPort()))

代码示例来源:origin: com.unboundid/unboundid-ldapsdk-commercial-edition

ERR_MOVE_SUBTREE_POSSIBLY_INTERRUPTED_IN_ADDS.get(baseDN,
    sourceConnection.getConnectedAddress(),
    sourceConnection.getConnectedPort(),
    targetConnection.getConnectedAddress(),
    targetConnection.getConnectedPort()),
  ERR_MOVE_SUBTREE_POSSIBLY_INTERRUPTED_IN_ADDS_ADMIN_MSG.get(),
  false, false, 0, 0, 0);
  ERR_MOVE_SUBTREE_POSSIBLY_INTERRUPTED_IN_DELETES.get(baseDN,
    sourceConnection.getConnectedAddress(),
    sourceConnection.getConnectedPort(),
    targetConnection.getConnectedAddress(),
    targetConnection.getConnectedPort()),
  ERR_MOVE_SUBTREE_POSSIBLY_INTERRUPTED_IN_DELETES_ADMIN_MSG.get(),
  false, false, 0, 0, 0);
ERR_MOVE_SUBTREE_POSSIBLY_INTERRUPTED.get(baseDN,
  sourceConnection.getConnectedAddress(),
  sourceConnection.getConnectedPort(),
  targetConnection.getConnectedAddress(),
  targetConnection.getConnectedPort(), details.toString()),
null, false, false, 0, 0, 0);

代码示例来源:origin: com.unboundid/unboundid-ldapsdk-commercial-edition

connection.getConnectedPort());

相关文章

LDAPConnection类方法