@NotMutable @ThreadSafety(level=COMPLETELY_THREADSAFE) public final class CompareResult extends LDAPResult
LDAPResult
class, and also includes a
compareMatched()
method for determining whether the
compare operation matched the target entry.NO_CONTROLS
Constructor and Description |
---|
CompareResult(int messageID,
ResultCode resultCode,
java.lang.String diagnosticMessage,
java.lang.String matchedDN,
java.lang.String[] referralURLs,
Control[] responseControls)
Creates a new compare result with the provided information.
|
CompareResult(LDAPException exception)
Creates a new compare result from the provided
LDAPException . |
CompareResult(LDAPResult ldapResult)
Creates a new compare result based on the provided LDAP result.
|
Modifier and Type | Method and Description |
---|---|
boolean |
compareMatched()
Indicates whether the compare operation matched the target entry.
|
getDiagnosticMessage, getMatchedDN, getMessageID, getOperationType, getReferralURLs, getResponseControl, getResponseControls, getResultCode, getResultString, hasResponseControl, hasResponseControl, toString, toString
public CompareResult(@NotNull LDAPResult ldapResult)
ldapResult
- The LDAP result object to use to create this compare
response.public CompareResult(@NotNull LDAPException exception)
LDAPException
.exception
- The LDAPException
to use to create this compare
result.public CompareResult(int messageID, @NotNull ResultCode resultCode, @Nullable java.lang.String diagnosticMessage, @Nullable java.lang.String matchedDN, @Nullable java.lang.String[] referralURLs, @Nullable Control[] responseControls)
messageID
- The message ID for the LDAP message that is
associated with this LDAP result.resultCode
- The result code from the response.diagnosticMessage
- The diagnostic message from the response, if
available.matchedDN
- The matched DN from the response, if available.referralURLs
- The set of referral URLs from the response, if
available.responseControls
- The set of controls from the response, if
available.public boolean compareMatched()
true
if the compare operation matched the target entry,
or false
if not.