public class CompareResponseProtocolOp extends ProtocolOp
| Constructor and Description |
|---|
CompareResponseProtocolOp(int resultCode)
Creates a new compare response protocol op with the provided result code.
|
CompareResponseProtocolOp(int resultCode,
LocalizableMessage errorMessage)
Creates a new compare response protocol op with the provided result code
and error message.
|
CompareResponseProtocolOp(int resultCode,
LocalizableMessage errorMessage,
DN matchedDN,
List<String> referralURLs)
Creates a new compare response protocol op with the provided information.
|
| Modifier and Type | Method and Description |
|---|---|
LocalizableMessage |
getErrorMessage()
Retrieves the error message for this response.
|
DN |
getMatchedDN()
Retrieves the matched DN for this response.
|
String |
getProtocolOpName()
Retrieves the name for this protocol op type.
|
List<String> |
getReferralURLs()
Retrieves the set of referral URLs for this response.
|
int |
getResultCode()
Retrieves the result code for this response.
|
byte |
getType()
Retrieves the BER type for this protocol op.
|
void |
toString(StringBuilder buffer)
Appends a string representation of this LDAP protocol op to the provided
buffer.
|
void |
toString(StringBuilder buffer,
int indent)
Appends a multi-line string representation of this LDAP protocol op to the
provided buffer.
|
void |
write(org.forgerock.opendj.io.ASN1Writer stream)
Writes this protocol op to an ASN.1 output stream.
|
toStringpublic CompareResponseProtocolOp(int resultCode)
resultCode - The result code for this response.public CompareResponseProtocolOp(int resultCode, LocalizableMessage errorMessage)
resultCode - The result code for this response.errorMessage - The error message for this response.public CompareResponseProtocolOp(int resultCode, LocalizableMessage errorMessage, DN matchedDN, List<String> referralURLs)
resultCode - The result code for this response.errorMessage - The error message for this response.matchedDN - The matched DN for this response.referralURLs - The referral URLs for this response.public int getResultCode()
public LocalizableMessage getErrorMessage()
null if none
is available.public DN getMatchedDN()
null if none is
available.public List<String> getReferralURLs()
null
if none are available.public byte getType()
ProtocolOpgetType in class ProtocolOppublic String getProtocolOpName()
ProtocolOpgetProtocolOpName in class ProtocolOppublic void write(org.forgerock.opendj.io.ASN1Writer stream) throws IOException
ProtocolOpwrite in class ProtocolOpstream - The ASN.1 output stream to write to.IOException - If a problem occurs while writing to the stream.public void toString(StringBuilder buffer)
ProtocolOptoString in class ProtocolOpbuffer - The buffer to which the string should be appended.public void toString(StringBuilder buffer, int indent)
ProtocolOptoString in class ProtocolOpbuffer - The buffer to which the information should be appended.indent - The number of spaces from the margin that the lines should
be indented.Copyright © 2010-2015 ForgeRock AS. All Rights Reserved.