Search in sources :

Example 6 with SearchResultReferenceDecorator

use of org.apache.directory.api.ldap.codec.decorators.SearchResultReferenceDecorator in project directory-ldap-api by apache.

the class InitSearchResultReference method action.

/**
 * {@inheritDoc}
 */
public void action(LdapMessageContainer<SearchResultReferenceDecorator> container) throws DecoderException {
    // Now, we can allocate the SearchResultReference Object
    SearchResultReferenceDecorator searchResultReference = new SearchResultReferenceDecorator(container.getLdapCodecService(), new SearchResultReferenceImpl(container.getMessageId()));
    container.setMessage(searchResultReference);
    LOG.debug("SearchResultReference response ");
}
Also used : SearchResultReferenceImpl(org.apache.directory.api.ldap.model.message.SearchResultReferenceImpl) SearchResultReferenceDecorator(org.apache.directory.api.ldap.codec.decorators.SearchResultReferenceDecorator)

Aggregations

SearchResultReferenceDecorator (org.apache.directory.api.ldap.codec.decorators.SearchResultReferenceDecorator)6 ByteBuffer (java.nio.ByteBuffer)4 DecoderException (org.apache.directory.api.asn1.DecoderException)4 Asn1Decoder (org.apache.directory.api.asn1.ber.Asn1Decoder)4 LdapMessageContainer (org.apache.directory.api.ldap.codec.api.LdapMessageContainer)4 AbstractCodecServiceTest (org.apache.directory.api.ldap.codec.osgi.AbstractCodecServiceTest)4 SearchResultReference (org.apache.directory.api.ldap.model.message.SearchResultReference)4 Test (org.junit.Test)4 EncoderException (org.apache.directory.api.asn1.EncoderException)3 Referral (org.apache.directory.api.ldap.model.message.Referral)3 HashSet (java.util.HashSet)2 Control (org.apache.directory.api.ldap.model.message.Control)2 CodecControl (org.apache.directory.api.ldap.codec.api.CodecControl)1 AbandonRequestDecorator (org.apache.directory.api.ldap.codec.decorators.AbandonRequestDecorator)1 AddRequestDecorator (org.apache.directory.api.ldap.codec.decorators.AddRequestDecorator)1 AddResponseDecorator (org.apache.directory.api.ldap.codec.decorators.AddResponseDecorator)1 BindRequestDecorator (org.apache.directory.api.ldap.codec.decorators.BindRequestDecorator)1 BindResponseDecorator (org.apache.directory.api.ldap.codec.decorators.BindResponseDecorator)1 CompareRequestDecorator (org.apache.directory.api.ldap.codec.decorators.CompareRequestDecorator)1 CompareResponseDecorator (org.apache.directory.api.ldap.codec.decorators.CompareResponseDecorator)1