Package org.opends.server.protocols.ldap
Class ModifyDNResponseProtocolOp
- java.lang.Object
-
- org.opends.server.protocols.ldap.ProtocolOp
-
- org.opends.server.protocols.ldap.ModifyDNResponseProtocolOp
-
public class ModifyDNResponseProtocolOp extends ProtocolOp
This class defines the structures and methods for an LDAP modify DN response protocol op, which is used to provide information about the result of processing a modify DN request.
-
-
Constructor Summary
Constructors Constructor Description ModifyDNResponseProtocolOp(int resultCode)Creates a new modify DN response protocol op with the provided result code.ModifyDNResponseProtocolOp(int resultCode, org.forgerock.i18n.LocalizableMessage errorMessage)Creates a new modify DN response protocol op with the provided result code and error message.ModifyDNResponseProtocolOp(int resultCode, org.forgerock.i18n.LocalizableMessage errorMessage, DN matchedDN, List<String> referralURLs)Creates a new modify DN response protocol op with the provided information.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description org.forgerock.i18n.LocalizableMessagegetErrorMessage()Retrieves the error message for this response.DNgetMatchedDN()Retrieves the matched DN for this response.StringgetProtocolOpName()Retrieves the name for this protocol op type.List<String>getReferralURLs()Retrieves the set of referral URLs for this response.intgetResultCode()Retrieves the result code for this response.bytegetType()Retrieves the BER type for this protocol op.voidtoString(StringBuilder buffer)Appends a string representation of this LDAP protocol op to the provided buffer.voidtoString(StringBuilder buffer, int indent)Appends a multi-line string representation of this LDAP protocol op to the provided buffer.voidwrite(ASN1Writer stream)Writes this protocol op to an ASN.1 output stream.-
Methods inherited from class org.opends.server.protocols.ldap.ProtocolOp
toString
-
-
-
-
Constructor Detail
-
ModifyDNResponseProtocolOp
public ModifyDNResponseProtocolOp(int resultCode)
Creates a new modify DN response protocol op with the provided result code.- Parameters:
resultCode- The result code for this response.
-
ModifyDNResponseProtocolOp
public ModifyDNResponseProtocolOp(int resultCode, org.forgerock.i18n.LocalizableMessage errorMessage)Creates a new modify DN response protocol op with the provided result code and error message.- Parameters:
resultCode- The result code for this response.errorMessage- The error message for this response.
-
ModifyDNResponseProtocolOp
public ModifyDNResponseProtocolOp(int resultCode, org.forgerock.i18n.LocalizableMessage errorMessage, DN matchedDN, List<String> referralURLs)Creates a new modify DN response protocol op with the provided information.- Parameters:
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.
-
-
Method Detail
-
getResultCode
public int getResultCode()
Retrieves the result code for this response.- Returns:
- The result code for this response.
-
getErrorMessage
public org.forgerock.i18n.LocalizableMessage getErrorMessage()
Retrieves the error message for this response.- Returns:
- The error message for this response, or
nullif none is available.
-
getMatchedDN
public DN getMatchedDN()
Retrieves the matched DN for this response.- Returns:
- The matched DN for this response, or
nullif none is available.
-
getReferralURLs
public List<String> getReferralURLs()
Retrieves the set of referral URLs for this response.- Returns:
- The set of referral URLs for this response, or
nullif none are available.
-
getType
public byte getType()
Description copied from class:ProtocolOpRetrieves the BER type for this protocol op.- Specified by:
getTypein classProtocolOp- Returns:
- The BER type for this protocol op.
-
getProtocolOpName
public String getProtocolOpName()
Description copied from class:ProtocolOpRetrieves the name for this protocol op type.- Specified by:
getProtocolOpNamein classProtocolOp- Returns:
- The name for this protocol op type.
-
write
public void write(ASN1Writer stream) throws IOException
Description copied from class:ProtocolOpWrites this protocol op to an ASN.1 output stream.- Specified by:
writein classProtocolOp- Parameters:
stream- The ASN.1 output stream to write to.- Throws:
IOException- If a problem occurs while writing to the stream.
-
toString
public void toString(StringBuilder buffer)
Description copied from class:ProtocolOpAppends a string representation of this LDAP protocol op to the provided buffer.- Specified by:
toStringin classProtocolOp- Parameters:
buffer- The buffer to which the string should be appended.
-
toString
public void toString(StringBuilder buffer, int indent)
Description copied from class:ProtocolOpAppends a multi-line string representation of this LDAP protocol op to the provided buffer.- Specified by:
toStringin classProtocolOp- Parameters:
buffer- The buffer to which the information should be appended.indent- The number of spaces from the margin that the lines should be indented.
-
-