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

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

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

LDAPConnection.getConnectedAddress介绍

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

代码示例

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

/**
 * Retrieves the address to which the connection is established.
 *
 * @return  The address to which the connection is established.
 */
public String getHost()
{
 return conn.getConnectedAddress();
}

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

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

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

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

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

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

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

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

代码示例来源: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-minimal-edition

if (conn.getConnectedAddress().equals(host) &&
  (port == conn.getConnectedPort()))

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

for (int i=0; i < addresses.length; i++)
 if (addresses[i].equals(conn.getConnectedAddress()) &&
   (ports[i] == conn.getConnectedPort()))

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

if (conn.getConnectedAddress().equals(host) &&
  (port == conn.getConnectedPort()))

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

server.getConnection("LDAP").getConnectedAddress(),
server.getConnection("LDAP").getConnectedPort(),
baseDn

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

if (serverName == null)
 serverName = connection.getConnectedAddress();

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

connection.getConnectedAddress(),
saslProperties, this);

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

serverSet = new SingleServerSet(connection.getConnectedAddress(),
                connection.getConnectedPort(),
                connection.getLastUsedSocketFactory(),

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

connection.getConnectedAddress(), null,
this);

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

connection.getConnectedAddress(), socket.getPort(), true);
 sslSocket.startHandshake();
   connection.getConnectedAddress(), socket.getPort(), sslSocket);
inputStream =
   new BufferedInputStream(sslSocket.getInputStream(),

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

connection.getConnectedAddress(), socket.getPort(), true);
 sslSocket.startHandshake();
   connection.getConnectedAddress(), socket.getPort(), sslSocket);
inputStream =
   new BufferedInputStream(sslSocket.getInputStream(),

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

MoveSubtree.setInterruptMessage(tool,
   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

out("Connected to ", connection.getConnectedAddress(), ':',
  connection.getConnectedPort());

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

out("Connected to ", connection.getConnectedAddress(), ':',
  connection.getConnectedPort());

相关文章

LDAPConnection类方法