com.unboundid.ldap.protocol
Class ModifyDNResponseProtocolOp

java.lang.Object
  extended by com.unboundid.ldap.protocol.GenericResponseProtocolOp
      extended by com.unboundid.ldap.protocol.ModifyDNResponseProtocolOp
All Implemented Interfaces:
ProtocolOp, java.io.Serializable

@InternalUseOnly
public final class ModifyDNResponseProtocolOp
extends GenericResponseProtocolOp

This class provides an implementation of a modify DN response protocol op.

See Also:
Serialized Form

Field Summary
 
Fields inherited from class com.unboundid.ldap.protocol.GenericResponseProtocolOp
TYPE_REFERRALS
 
Constructor Summary
ModifyDNResponseProtocolOp(int resultCode, java.lang.String matchedDN, java.lang.String diagnosticMessage, java.util.List<java.lang.String> referralURLs)
          Creates a new instance of this modify DN response protocol op with the provided information.
ModifyDNResponseProtocolOp(LDAPResult result)
          Creates a new modify DN response protocol op from the provided LDAP result object.
 
Method Summary
static ModifyDNResponseProtocolOp decodeProtocolOp(ASN1Element element)
          Decodes the provided ASN.1 element as a modify DN response protocol op.
 ASN1Element encodeProtocolOp()
          Encodes this protocol op to an ASN.1 element suitable for inclusion in an encoded LDAP message.
 
Methods inherited from class com.unboundid.ldap.protocol.GenericResponseProtocolOp
getDiagnosticMessage, getMatchedDN, getProtocolOpType, getReferralURLs, getResultCode, toLDAPResult, toString, toString, writeTo
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ModifyDNResponseProtocolOp

public ModifyDNResponseProtocolOp(int resultCode,
                                  java.lang.String matchedDN,
                                  java.lang.String diagnosticMessage,
                                  java.util.List<java.lang.String> referralURLs)
Creates a new instance of this modify DN response protocol op with the provided information.

Parameters:
resultCode - The result code for this response.
matchedDN - The matched DN for this response, if available.
diagnosticMessage - The diagnostic message for this response, if any.
referralURLs - The list of referral URLs for this response, if any.

ModifyDNResponseProtocolOp

public ModifyDNResponseProtocolOp(LDAPResult result)
Creates a new modify DN response protocol op from the provided LDAP result object.

Parameters:
result - The LDAP result object to use to create this protocol op.
Method Detail

encodeProtocolOp

public ASN1Element encodeProtocolOp()
Encodes this protocol op to an ASN.1 element suitable for inclusion in an encoded LDAP message.

Returns:
The ASN.1 element containing the encoded protocol op.

decodeProtocolOp

public static ModifyDNResponseProtocolOp decodeProtocolOp(ASN1Element element)
                                                   throws LDAPException
Decodes the provided ASN.1 element as a modify DN response protocol op.

Parameters:
element - The ASN.1 element to be decoded.
Returns:
The decoded modify DN response protocol op.
Throws:
LDAPException - If the provided ASN.1 element cannot be decoded as a modify DN response protocol op.