Package org.apache.qpid.proton.engine

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


        }
        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


        _size = size;

        _localError = frameParsingError;
        if(_state == State.ERROR )
        {
            throw new TransportException(frameParsingError.getDescription());
        }
        return _state == State.ERROR ? -1 : length - in.remaining();
    }
View Full Code Here

        _lastTransportResult.checkIsOk();
        if(inputLength == 0)
        {
            if(_connectionEndpoint == null || _connectionEndpoint.getRemoteState() != EndpointState.CLOSED)
            {
                return TransportResultFactory.error(new TransportException("Unexpected EOS when remote connection not closed: connection aborted"));
            }
        }
        return TransportResultFactory.ok();
    }
View Full Code Here

    @Override
    public void closed()
    {
        if (!_closeReceived) {
            throw new TransportException("connection aborted");
        }
    }
View Full Code Here

    @Override
    public void process() throws TransportException
    {
        if(_nextError != null)
        {
            throw new TransportException(_nextError);
        }

        _buffer.flip();
        byte[] receivedInputBuffer = new byte[_buffer.remaining()];
        _buffer.get(receivedInputBuffer);
View Full Code Here

            }
            while(keepLooping);
        }
        catch(SSLException e)
        {
            throw new TransportException("Problem during input. useClientMode: "
                                         + _sslEngine.getUseClientMode(),
                                         e);
        }
    }
View Full Code Here

                    keepWrapping = false;
                }
            }
            catch(SSLException e)
            {
                throw new TransportException("Problem during output. useClientMode: " + _sslEngine.getUseClientMode(), e);
            }
            finally
            {
                _underlyingOutput.pop(clearOutputBuffer.position());
            }
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
        {
View Full Code Here

        _lastTransportResult.checkIsOk();
        if(inputLength == 0)
        {
            if(_connectionEndpoint == null || _connectionEndpoint.getRemoteState() != EndpointState.CLOSED)
            {
                return TransportResultFactory.error(new TransportException("Unexpected EOS when remote connection not closed: connection aborted"));
            }
        }
        return TransportResultFactory.ok();
    }
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.