Package org.apache.directory.shared.ldap.codec.controls.replication.syncDoneValue

Examples of org.apache.directory.shared.ldap.codec.controls.replication.syncDoneValue.SyncDoneValueControl


       
        SearchResultDoneCodec searchResult = (SearchResultDoneCodec)response;
       
        // Get the control
        Control control = searchResult.getCurrentControl();
        SyncDoneValueControl syncDoneCtrl = ( SyncDoneValueControl ) control;

        /** the sync cookie sent by the server */
        byte[] syncCookie;

        if ( syncDoneCtrl.getCookie() != null )
        {
            syncCookie = syncDoneCtrl.getCookie();
            LOG.debug( "assigning cookie from sync done value control: {}", StringTools.utf8ToString( syncCookie ) );
        }
        else
        {
            LOG.info( "cookie in syncdone message is null" );
View Full Code Here


    public void handleSearchDone( SearchResultDone searchDone )
    {
        LOG.debug( "///////////////// handleSearchDone //////////////////" );

        Control ctrl = searchDone.getControl( SyncDoneValueControl.CONTROL_OID );
        SyncDoneValueControl syncDoneCtrl = new SyncDoneValueControl();
        try
        {
            syncDoneCtrl = ( SyncDoneValueControl ) syncDoneControlDecoder.decode( ctrl.getValue(), syncDoneCtrl );
            refreshDeletes = syncDoneCtrl.isRefreshDeletes();
        }
        catch ( Exception e )
        {
            LOG.error( "Failed to decode the syncDoneControlCodec", e );
        }

        if ( syncDoneCtrl.getCookie() != null )
        {
            syncCookie = syncDoneCtrl.getCookie();
            LOG.debug( "assigning cookie from sync done value control: " + StringTools.utf8ToString( syncCookie ) );
        }

        ResultCodeEnum resultCode = searchDone.getLdapResult().getResultCode();
View Full Code Here

TOP

Related Classes of org.apache.directory.shared.ldap.codec.controls.replication.syncDoneValue.SyncDoneValueControl

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.