本文整理了Java中com.unboundid.ldap.sdk.LDAPConnection.compare()
方法的一些代码示例,展示了LDAPConnection.compare()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。LDAPConnection.compare()
方法的具体详情如下:
包路径:com.unboundid.ldap.sdk.LDAPConnection
类名称:LDAPConnection
方法名:compare
[英]Processes the provided compare request.
[中]处理提供的比较请求。
代码示例来源:origin: com.unboundid/unboundid-ldapsdk-commercial-edition
/**
* Processes the provided compare request.
*
* @param compareRequest The compare request to be processed. It must not
* be {@code null}.
*
* @return The result of processing the compare operation.
*
* @throws LDAPException If the server rejects the compare request, or if a
* problem is encountered while sending the request or
* reading the response.
*/
public CompareResult compare(final ReadOnlyCompareRequest compareRequest)
throws LDAPException
{
return compare((CompareRequest) compareRequest);
}
代码示例来源:origin: com.unboundid/unboundid-ldapsdk-minimal-edition
/**
* Processes the provided compare request.
*
* @param compareRequest The compare request to be processed. It must not
* be {@code null}.
*
* @return The result of processing the compare operation.
*
* @throws LDAPException If the server rejects the compare request, or if a
* problem is encountered while sending the request or
* reading the response.
*/
public CompareResult compare(final ReadOnlyCompareRequest compareRequest)
throws LDAPException
{
return compare((CompareRequest) compareRequest);
}
代码示例来源:origin: com.unboundid/unboundid-ldapsdk-commercial-edition
/**
* Processes a compare operation with the provided information.
*
* @param dn The DN of the entry in which to make the
* comparison. It must not be {@code null}.
* @param attributeName The attribute name for which to make the
* comparison. It must not be {@code null}.
* @param assertionValue The assertion value to verify in the target entry.
* It must not be {@code null}.
*
* @return The result of processing the compare operation.
*
* @throws LDAPException If the server rejects the compare request, or if a
* problem is encountered while sending the request or
* reading the response.
*/
public CompareResult compare(final String dn, final String attributeName,
final String assertionValue)
throws LDAPException
{
ensureNotNull(dn, attributeName, assertionValue);
return compare(new CompareRequest(dn, attributeName, assertionValue));
}
代码示例来源:origin: com.unboundid/unboundid-ldapsdk-minimal-edition
/**
* Processes a compare operation with the provided information.
*
* @param dn The DN of the entry in which to make the
* comparison. It must not be {@code null}.
* @param attributeName The attribute name for which to make the
* comparison. It must not be {@code null}.
* @param assertionValue The assertion value to verify in the target entry.
* It must not be {@code null}.
*
* @return The result of processing the compare operation.
*
* @throws LDAPException If the server rejects the compare request, or if a
* problem is encountered while sending the request or
* reading the response.
*/
public CompareResult compare(final String dn, final String attributeName,
final String assertionValue)
throws LDAPException
{
ensureNotNull(dn, attributeName, assertionValue);
return compare(new CompareRequest(dn, attributeName, assertionValue));
}
代码示例来源:origin: com.unboundid/unboundid-ldapsdk-commercial-edition
final CompareResult result = conn.compare(compareRequest);
releaseConnection(conn);
return result;
final CompareResult result = newConn.compare(compareRequest);
releaseConnection(newConn);
return result;
代码示例来源:origin: com.unboundid/unboundid-ldapsdk-minimal-edition
final CompareResult result = conn.compare(compareRequest);
releaseConnection(conn);
return result;
final CompareResult result = newConn.compare(compareRequest);
releaseConnection(newConn);
return result;
代码示例来源:origin: com.unboundid/unboundid-ldapsdk-commercial-edition
try
compareResult = ldapConnection.compare(compareRequest);
代码示例来源:origin: com.unboundid/unboundid-ldapsdk-commercial-edition
final CompareResult result = conn.compare(compareRequest);
setResponseControls(result);
return result.compareMatched();
代码示例来源:origin: com.unboundid/unboundid-ldapsdk-commercial-edition
final CompareResult result = connection.compare(compareRequest);
if (result.compareMatched())
内容来源于网络,如有侵权,请联系作者删除!