本文整理了Java中com.unboundid.ldap.sdk.LDAPConnection.sendMessage()
方法的一些代码示例,展示了LDAPConnection.sendMessage()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。LDAPConnection.sendMessage()
方法的具体详情如下:
包路径:com.unboundid.ldap.sdk.LDAPConnection
类名称:LDAPConnection
方法名:sendMessage
[英]Sends the provided LDAP message to the server over this connection.
[中]通过此连接将提供的LDAP消息发送到服务器。
代码示例来源:origin: com.unboundid/unboundid-ldapsdk-minimal-edition
connection.sendMessage(requestMessage);
代码示例来源:origin: com.unboundid/unboundid-ldapsdk-commercial-edition
connection.sendMessage(requestMessage);
代码示例来源:origin: com.unboundid/unboundid-ldapsdk-minimal-edition
/**
* Sends an LDAP cancel extended request to the server over the provided
* connection without waiting for the response. This is intended for use when
* it is necessary to send a cancel request over a connection operating in
* synchronous mode.
*
* @param connection The connection over which to send the cancel
* request.
* @param targetMessageID The message ID of the request to cancel.
* @param controls The set of controls to include in the request.
*
* @throws LDAPException If a problem occurs while sending the cancel
* request.
*/
@InternalUseOnly()
public static void cancel(final LDAPConnection connection,
final int targetMessageID,
final Control... controls)
throws LDAPException
{
final CancelExtendedRequest cancelRequest =
new CancelExtendedRequest(targetMessageID);
connection.sendMessage(new LDAPMessage(connection.nextMessageID(),
new ExtendedRequest(cancelRequest), controls));
}
代码示例来源:origin: com.unboundid/unboundid-ldapsdk-commercial-edition
/**
* Sends an LDAP cancel extended request to the server over the provided
* connection without waiting for the response. This is intended for use when
* it is necessary to send a cancel request over a connection operating in
* synchronous mode.
*
* @param connection The connection over which to send the cancel
* request.
* @param targetMessageID The message ID of the request to cancel.
* @param controls The set of controls to include in the request.
*
* @throws LDAPException If a problem occurs while sending the cancel
* request.
*/
@InternalUseOnly()
public static void cancel(final LDAPConnection connection,
final int targetMessageID,
final Control... controls)
throws LDAPException
{
final CancelExtendedRequest cancelRequest =
new CancelExtendedRequest(targetMessageID);
connection.sendMessage(new LDAPMessage(connection.nextMessageID(),
new ExtendedRequest(cancelRequest), controls));
}
代码示例来源:origin: com.unboundid/unboundid-ldapsdk-commercial-edition
final long requestTime = System.nanoTime();
connection.getConnectionStatistics().incrementNumExtendedRequests();
connection.sendMessage(message);
代码示例来源:origin: com.unboundid/unboundid-ldapsdk-commercial-edition
final long requestTime = System.nanoTime();
connection.getConnectionStatistics().incrementNumBindRequests();
connection.sendMessage(requestMessage);
代码示例来源:origin: com.unboundid/unboundid-ldapsdk-minimal-edition
final long requestTime = System.nanoTime();
connection.getConnectionStatistics().incrementNumBindRequests();
connection.sendMessage(requestMessage);
代码示例来源:origin: com.unboundid/unboundid-ldapsdk-commercial-edition
final long requestTime = System.nanoTime();
connection.getConnectionStatistics().incrementNumBindRequests();
connection.sendMessage(message);
代码示例来源:origin: com.unboundid/unboundid-ldapsdk-minimal-edition
sendMessage(new LDAPMessage(nextMessageID(),
new AbandonRequestProtocolOp(messageID), controls));
代码示例来源:origin: com.unboundid/unboundid-ldapsdk-commercial-edition
sendMessage(new LDAPMessage(nextMessageID(),
new AbandonRequestProtocolOp(messageID), controls));
代码示例来源:origin: com.unboundid/unboundid-ldapsdk-commercial-edition
sendMessage(new LDAPMessage(nextMessageID(),
new UnbindRequestProtocolOp(), controls));
代码示例来源:origin: com.unboundid/unboundid-ldapsdk-commercial-edition
try
connection.sendMessage(message);
代码示例来源:origin: com.unboundid/unboundid-ldapsdk-minimal-edition
sendMessage(new LDAPMessage(nextMessageID(),
new UnbindRequestProtocolOp(), controls));
代码示例来源:origin: com.unboundid/unboundid-ldapsdk-commercial-edition
connection.sendMessage(message);
return asyncRequestID;
代码示例来源:origin: com.unboundid/unboundid-ldapsdk-commercial-edition
connection.sendMessage(message);
return asyncRequestID;
代码示例来源:origin: com.unboundid/unboundid-ldapsdk-commercial-edition
connection.sendMessage(message);
return asyncRequestID;
代码示例来源:origin: com.unboundid/unboundid-ldapsdk-commercial-edition
connection.sendMessage(message);
return asyncRequestID;
代码示例来源:origin: com.unboundid/unboundid-ldapsdk-minimal-edition
connection.sendMessage(message);
return asyncRequestID;
代码示例来源:origin: com.unboundid/unboundid-ldapsdk-commercial-edition
sendMessage(new LDAPMessage(nextMessageID(),
new AbandonRequestProtocolOp(messageID), controls));
代码示例来源:origin: com.unboundid/unboundid-ldapsdk-minimal-edition
sendMessage(new LDAPMessage(nextMessageID(),
new AbandonRequestProtocolOp(messageID), controls));
内容来源于网络,如有侵权,请联系作者删除!