com.unboundid.ldap.protocol
Class SearchResultDoneProtocolOp
java.lang.Object
com.unboundid.ldap.protocol.GenericResponseProtocolOp
com.unboundid.ldap.protocol.SearchResultDoneProtocolOp
- All Implemented Interfaces:
- ProtocolOp, java.io.Serializable
@InternalUseOnly
public final class SearchResultDoneProtocolOp
- extends GenericResponseProtocolOp
This class provides an implementation of a search result done protocol op.
- See Also:
- Serialized Form
Constructor Summary |
SearchResultDoneProtocolOp(int resultCode,
java.lang.String matchedDN,
java.lang.String diagnosticMessage,
java.util.List<java.lang.String> referralURLs)
Creates a new instance of this search result done protocol op with the
provided information. |
SearchResultDoneProtocolOp(LDAPResult result)
Creates a new search result done protocol op from the provided LDAP result
object. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
SearchResultDoneProtocolOp
public SearchResultDoneProtocolOp(int resultCode,
java.lang.String matchedDN,
java.lang.String diagnosticMessage,
java.util.List<java.lang.String> referralURLs)
- Creates a new instance of this search result done protocol op with the
provided information.
- Parameters:
resultCode
- The result code for this search result done.matchedDN
- The matched DN for this search result done, if
any.diagnosticMessage
- The diagnostic message for this search result
done, if any.referralURLs
- The list of referral URLs for this search result
done, if any.
SearchResultDoneProtocolOp
public SearchResultDoneProtocolOp(LDAPResult result)
- Creates a new search result done protocol op from the provided LDAP result
object.
- Parameters:
result
- The LDAP result object to use to create this protocol op.
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 SearchResultDoneProtocolOp decodeProtocolOp(ASN1Element element)
throws LDAPException
- Decodes the provided ASN.1 element as a search result done protocol op.
- Parameters:
element
- The ASN.1 element to be decoded.
- Returns:
- The decoded search result done protocol op.
- Throws:
LDAPException
- If the provided ASN.1 element cannot be decoded as
a search result done protocol op.