Package com.unboundid.ldap.protocol
Class DeleteResponseProtocolOp
java.lang.Object
com.unboundid.ldap.protocol.GenericResponseProtocolOp
com.unboundid.ldap.protocol.DeleteResponseProtocolOp
- All Implemented Interfaces:
ProtocolOp,Serializable
@InternalUseOnly
@NotMutable
@ThreadSafety(level=COMPLETELY_THREADSAFE)
public final class DeleteResponseProtocolOp
extends GenericResponseProtocolOp
This class provides an implementation of a delete response protocol op.
- See Also:
-
Field Summary
Fields inherited from class com.unboundid.ldap.protocol.GenericResponseProtocolOp
TYPE_REFERRALS -
Constructor Summary
ConstructorsConstructorDescriptionDeleteResponseProtocolOp(int resultCode, String matchedDN, String diagnosticMessage, List<String> referralURLs) Creates a new instance of this delete response protocol op with the provided information.DeleteResponseProtocolOp(LDAPResult result) Creates a new delete response protocol op from the provided LDAP result object. -
Method Summary
Modifier and TypeMethodDescriptionstatic DeleteResponseProtocolOpdecodeProtocolOp(ASN1Element element) Decodes the provided ASN.1 element as a delete response protocol op.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
-
Constructor Details
-
DeleteResponseProtocolOp
public DeleteResponseProtocolOp(int resultCode, @Nullable String matchedDN, @Nullable String diagnosticMessage, @Nullable List<String> referralURLs) Creates a new instance of this delete 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.
-
DeleteResponseProtocolOp
Creates a new delete response protocol op from the provided LDAP result object.- Parameters:
result- The LDAP result object to use to create this protocol op.
-
-
Method Details
-
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
@NotNull public static DeleteResponseProtocolOp decodeProtocolOp(@NotNull ASN1Element element) throws LDAPException Decodes the provided ASN.1 element as a delete response protocol op.- Parameters:
element- The ASN.1 element to be decoded.- Returns:
- The decoded delete response protocol op.
- Throws:
LDAPException- If the provided ASN.1 element cannot be decoded as a delete response protocol op.
-