@Override public void connect() throws IOException { checkClosed(); transport = createTransport(getRemoteURI()); transport.connect(); }
private void pumpToProtonTransport() { try { boolean done = false; while (!done) { ByteBuffer toWrite = protonTransport.getOutputBuffer(); if (toWrite != null && toWrite.hasRemaining()) { // TODO - Get Bytes in a readable form if (isTraceBytes()) { TRACE_BYTES.info("Sending: {}", toWrite.toString()); } transport.send(toWrite); protonTransport.outputConsumed(); } else { done = true; } } } catch (IOException e) { fireProviderException(e); } }