@Override public String toString() { return String.format("%s#%d{%s}", super.toString(), streamId, ErrorCode.toString(error, null)); } }
@Override public String toString() { return String.format("%s#%d{%s}", super.toString(), streamId, ErrorCode.toString(error, null)); } }
@Override public void onFailure(Stream stream, int error, String reason, Callback callback) { responseFailure(new IOException(String.format("%s/%s", ErrorCode.toString(error, null), reason))); callback.succeeded(); }
@Override public String toString() { return String.format("%s,%d/%s/%s/%s", super.toString(), lastStreamId, ErrorCode.toString(error, null), tryConvertPayload(), closeState); } }
@Override public String toString() { return String.format("%s,%d/%s/%s/%s", super.toString(), lastStreamId, ErrorCode.toString(error, null), tryConvertPayload(), closeState); } }
@Override public void onFailure(Stream stream, int error, String reason, Callback callback) { getConnection().onStreamFailure((IStream)stream, new EofException(String.format("Failure %s/%s", ErrorCode.toString(error, null), reason)), callback); }
@Override public void onClose(Session session, GoAwayFrame frame, Callback callback) { String reason = frame.tryConvertPayload(); if (reason != null && !reason.isEmpty()) reason = " (" + reason + ")"; getConnection().onSessionFailure(new EofException(String.format("Close %s/%s", ErrorCode.toString(frame.getError(), null), reason)), callback); }
@Override public void onReset(Stream stream, ResetFrame frame, Callback callback) { getConnection().onStreamFailure((IStream)stream, new EofException("Reset " + ErrorCode.toString(frame.getError(), null)), callback); }