Package org.apache.qpid.proton.engine

Examples of org.apache.qpid.proton.engine.TransportException


            int capacity = _underlyingInput.capacity();
            if (capacity == Transport.END_OF_STREAM) {
                _tail_closed = true;
                if (_decodedInputBuffer.position() > 0) {
                    throw new TransportException("bytes left unconsumed");
                }
            } else {
                ByteBuffer tail = _underlyingInput.tail();
                _decodedInputBuffer.flip();
                tail.put(_decodedInputBuffer);
View Full Code Here


    }

    @Override
    public ByteBuffer tail()
    {
        if (_tail_closed) throw new TransportException("tail closed");
        return _inputBuffer;
    }
View Full Code Here

    }

    @Override
    public void process() throws TransportException
    {
        if (_tail_closed) throw new TransportException("tail closed");

        _inputBuffer.flip();

        try
        {
            try {
                unwrapInput();
            } catch (SSLException e) {
                throw new TransportException(e);
            }
        }
        catch (TransportException e)
        {
            _inputBuffer.position(_inputBuffer.limit());
View Full Code Here

    public int pending()
    {
        try {
            wrapOutput();
        } catch (SSLException e) {
            throw new TransportException(e);
        }

        _head.limit(_outputBuffer.position());

        if (_head_closed && _outputBuffer.position() == 0)
View Full Code Here

        {
            initTransportWrapperOnFirstIO();
            if (_initException == null) {
                _transportWrapper.process();
            } else {
                throw new TransportException(_initException);
            }
        }
View Full Code Here

        {
            initTransportWrapperOnFirstIO();
            if (_initException == null) {
                return _transportWrapper.pending();
            } else {
                throw new TransportException(_initException);
            }
        }
View Full Code Here

        }
        if(length == 0)
        {
            if(_connectionEndpoint == null || _connectionEndpoint.getRemoteState() != EndpointState.CLOSED)
            {
                throw new TransportException("Unexpected EOS: connection aborted");
            }
        }
        try
        {
            return  _inputProcessor.input(bytes, offset, length);
View Full Code Here

TOP

Related Classes of org.apache.qpid.proton.engine.TransportException

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.