Package org.apache.directory.api.ldap.extras.extended.cancel

Examples of org.apache.directory.api.ldap.extras.extended.cancel.CancelRequest


    {
        CancelDecoder decoder = new CancelDecoder();

        try
        {
            CancelRequest cancel = decoder.decode( requestValue );

            if ( requestValue != null )
            {
                this.requestValue = new byte[requestValue.length];
                System.arraycopy( requestValue, 0, this.requestValue, 0, requestValue.length );
            }
            else
            {
                this.requestValue = null;
            }

            cancelRequest.setCancelId( cancel.getCancelId() );
        }
        catch ( DecoderException e )
        {
            LOG.error( I18n.err( I18n.ERR_04165 ), e );
            throw new RuntimeException( e );
View Full Code Here


    public CancelRequest decode( byte[] stream ) throws DecoderException
    {
        ByteBuffer bb = ByteBuffer.wrap( stream );
        CancelContainer container = new CancelContainer();
        decoder.decode( bb, container );
        CancelRequest cancel = container.getCancel();

        // Clean the container for the next decoding
        container.clean();

        return cancel;
View Full Code Here

TOP

Related Classes of org.apache.directory.api.ldap.extras.extended.cancel.CancelRequest

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.