public String toConnectionString() { Connection connection = getConnection(); if (connection == null) // can happen during upgrade return "<null>"; if (connection instanceof AbstractConnection) return ((AbstractConnection)connection).toConnectionString(); return String.format("%s@%x",connection.getClass().getSimpleName(),connection.hashCode()); }
public String toConnectionString() { Connection connection = getConnection(); if (connection == null) // can happen during upgrade return "<null>"; if (connection instanceof AbstractConnection) return ((AbstractConnection)connection).toConnectionString(); return String.format("%s@%x",connection.getClass().getSimpleName(),connection.hashCode()); }
@Override public String toConnectionString() { 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(); Connection connection = _decryptedEndPoint.getConnection(); return String.format("%s@%x{%s,eio=%d/%d,di=%d,fill=%s,flush=%s}~>%s=>%s", getClass().getSimpleName(), hashCode(), _sslEngine.getHandshakeStatus(), ei,eo,di, _fillState,_flushState, _decryptedEndPoint.toEndPointString(), connection instanceof AbstractConnection ? ((AbstractConnection)connection).toConnectionString() : connection); }
@Override public String toConnectionString() { 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(); Connection connection = _decryptedEndPoint.getConnection(); return String.format("%s@%x{%s,eio=%d/%d,di=%d,fill=%s,flush=%s}~>%s=>%s", getClass().getSimpleName(), hashCode(), _sslEngine.getHandshakeStatus(), ei,eo,di, _fillState,_flushState, _decryptedEndPoint.toEndPointString(), connection instanceof AbstractConnection ? ((AbstractConnection)connection).toConnectionString() : connection); }