Search in sources :

Example 6 with SearchResultEntryProtocolOp

use of com.unboundid.ldap.protocol.SearchResultEntryProtocolOp in project ldapsdk by pingidentity.

the class InterceptedSearchOperation method sendSearchEntry.

/**
 * {@inheritDoc}
 */
@Override()
public void sendSearchEntry(@NotNull final Entry entry) throws LDAPException {
    final Control[] controls;
    if (entry instanceof SearchResultEntry) {
        controls = ((SearchResultEntry) entry).getControls();
    } else {
        controls = null;
    }
    getClientConnection().sendSearchResultEntry(getMessageID(), new SearchResultEntryProtocolOp(entry), controls);
}
Also used : Control(com.unboundid.ldap.sdk.Control) SearchResultEntryProtocolOp(com.unboundid.ldap.protocol.SearchResultEntryProtocolOp) SearchResultEntry(com.unboundid.ldap.sdk.SearchResultEntry)

Aggregations

SearchResultEntryProtocolOp (com.unboundid.ldap.protocol.SearchResultEntryProtocolOp)6 Control (com.unboundid.ldap.sdk.Control)4 LDAPMessage (com.unboundid.ldap.protocol.LDAPMessage)2 SearchRequestProtocolOp (com.unboundid.ldap.protocol.SearchRequestProtocolOp)2 SearchResultDoneProtocolOp (com.unboundid.ldap.protocol.SearchResultDoneProtocolOp)2 LDAPException (com.unboundid.ldap.sdk.LDAPException)2 SearchRequest (com.unboundid.ldap.sdk.SearchRequest)2 SearchResultEntry (com.unboundid.ldap.sdk.SearchResultEntry)2 Test (org.testng.annotations.Test)2 ASN1Element (com.unboundid.asn1.ASN1Element)1 ASN1OctetString (com.unboundid.asn1.ASN1OctetString)1 ASN1Sequence (com.unboundid.asn1.ASN1Sequence)1 ASN1StreamReader (com.unboundid.asn1.ASN1StreamReader)1 BindRequestProtocolOp (com.unboundid.ldap.protocol.BindRequestProtocolOp)1 BindResponseProtocolOp (com.unboundid.ldap.protocol.BindResponseProtocolOp)1 SearchResultReferenceProtocolOp (com.unboundid.ldap.protocol.SearchResultReferenceProtocolOp)1 UnbindRequestProtocolOp (com.unboundid.ldap.protocol.UnbindRequestProtocolOp)1 Attribute (com.unboundid.ldap.sdk.Attribute)1 Entry (com.unboundid.ldap.sdk.Entry)1 LDAPRuntimeException (com.unboundid.ldap.sdk.LDAPRuntimeException)1