@Override public String toString() { ByteBuffer b = _encryptedInput; int ei = b == null ? -1 : b.remaining(); b = _encryptedOutput; int eo = b == null ? -1 : b.remaining(); b = _decryptedInput; int di = b == null ? -1 : b.remaining(); return String.format( "SslConnection@%x{%s,eio=%d/%d,di=%d} -> %s", hashCode(), _sslEngine.getHandshakeStatus(), ei, eo, di, _decryptedEndPoint.getConnection()); }
@Override public void onClose() { _decryptedEndPoint.getConnection().onClose(); super.onClose(); }