public class ModifyResponseProtocolOp extends ProtocolOp
Constructor and Description |
---|
ModifyResponseProtocolOp(int resultCode)
Creates a new modify response protocol op with the provided result code.
|
ModifyResponseProtocolOp(int resultCode,
LocalizableMessage errorMessage)
Creates a new modify response protocol op with the provided result code and error message.
|
ModifyResponseProtocolOp(int resultCode,
LocalizableMessage errorMessage,
Dn matchedDN,
List<String> referralURLs)
Creates a new modify 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 |
write(Asn1Writer stream)
Writes this protocol op to an ASN.1 output stream.
|
toString
public ModifyResponseProtocolOp(int resultCode)
resultCode
- The result code for this response.public ModifyResponseProtocolOp(int resultCode, LocalizableMessage errorMessage)
resultCode
- The result code for this response.errorMessage
- The error message for this response.public ModifyResponseProtocolOp(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()
ProtocolOp
getType
in class ProtocolOp
public String getProtocolOpName()
ProtocolOp
getProtocolOpName
in class ProtocolOp
public void write(Asn1Writer stream) throws IOException
ProtocolOp
write
in class ProtocolOp
stream
- The ASN.1 output stream to write to.IOException
- If a problem occurs while writing to the stream.public void toString(StringBuilder buffer)
ProtocolOp
toString
in class ProtocolOp
buffer
- The buffer to which the string should be appended.Copyright 2010-2018 ForgeRock AS.