Package org.ldaptive
Class CompareResponse
java.lang.Object
org.ldaptive.AbstractMessage
org.ldaptive.AbstractResult
org.ldaptive.CompareResponse
LDAP compare response defined as:
CompareResponse ::= [APPLICATION 15] LDAPResult
-
Nested Class Summary
Nested ClassesNested classes/interfaces inherited from class org.ldaptive.AbstractResult
AbstractResult.AbstractBuilder<B,
T extends AbstractResult>, AbstractResult.DiagnosticMessageHandler, AbstractResult.MatchedDNHandler, AbstractResult.ReferralHandler, AbstractResult.ResultCodeHandler Nested classes/interfaces inherited from class org.ldaptive.AbstractMessage
AbstractMessage.ControlParser, AbstractMessage.ControlsHandler, AbstractMessage.MessageIDHandler
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate static final DERPath
DER path to diagnostic message.private static final int
hash code seed.private static final DERPath
DER path to matched DN.static final int
BER protocol number.private static final DERPath
DER path to referral.private static final DERPath
DER path to result code.Fields inherited from interface org.ldaptive.Result
ENCODE_CNTRL_CHARS
-
Constructor Summary
ConstructorsModifierConstructorDescriptionprivate
Default constructor.CompareResponse
(DERBuffer buffer) Creates a new compare response. -
Method Summary
Modifier and TypeMethodDescriptionstatic CompareResponse.Builder
builder()
Creates a builder for this class.boolean
int
hashCode()
Returns the hash code for this object.boolean
isFalse()
Returns whether the result code in this result isResultCode.COMPARE_FALSE
.boolean
isTrue()
Returns whether the result code in this result isResultCode.COMPARE_TRUE
.Methods inherited from class org.ldaptive.AbstractResult
addReferralURLs, copyValues, getDiagnosticMessage, getMatchedDN, getReferralURLs, getResultCode, setDiagnosticMessage, setMatchedDN, setResultCode, toString
Methods inherited from class org.ldaptive.AbstractMessage
addControls, copyValues, getControls, getMessageID, setMessageID
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
Methods inherited from interface org.ldaptive.Message
getControl, getControls, getMessageID
Methods inherited from interface org.ldaptive.Result
getEncodedDiagnosticMessage, isSuccess
-
Field Details
-
PROTOCOL_OP
public static final int PROTOCOL_OPBER protocol number.- See Also:
-
HASH_CODE_SEED
private static final int HASH_CODE_SEEDhash code seed.- See Also:
-
RESULT_CODE_PATH
DER path to result code. -
MATCHED_DN_PATH
DER path to matched DN. -
DIAGNOSTIC_MESSAGE_PATH
DER path to diagnostic message. -
REFERRAL_PATH
DER path to referral.
-
-
Constructor Details
-
CompareResponse
private CompareResponse()Default constructor. -
CompareResponse
Creates a new compare response.- Parameters:
buffer
- to decode
-
-
Method Details
-
isTrue
public boolean isTrue()Returns whether the result code in this result isResultCode.COMPARE_TRUE
.- Returns:
- whether this result is compare true
-
isFalse
public boolean isFalse()Returns whether the result code in this result isResultCode.COMPARE_FALSE
.- Returns:
- whether this result is compare false
-
equals
- Overrides:
equals
in classAbstractResult
-
hashCode
public int hashCode()Description copied from class:AbstractMessage
Returns the hash code for this object.- Specified by:
hashCode
in classAbstractMessage
- Returns:
- hash code
-
builder
Creates a builder for this class.- Returns:
- new builder
-