@Override public void startResponse(HttpResponse response) throws Exception { _decorated = new ChunkedBodyReadableByteChannel(); _registerResponseVersionHdr = response.getHeader(DatabusHttpHeaders.DBUS_CLIENT_RELAY_PROTOCOL_VERSION_HDR); super.startResponse(response); }
@Override public void startResponse(HttpResponse response) throws Exception { try { if (LOG.isTraceEnabled()) LOG.trace("started response for /stream"); _decorated = new ChunkedBodyReadableByteChannel(); super.startResponse(response); if (!_errorHandled) { _stateReuse.switchToStreamSuccess(_decorated); _callback.enqueueMessage(_stateReuse); } } catch (Exception e) { LOG.error("Error reading events from server", e); if (!_errorHandled) { _stateReuse.switchToStreamResponseError(); _callback.enqueueMessage(_stateReuse); } } }
@Override public void startResponse(HttpResponse response) throws Exception { _decorated = new ChunkedBodyReadableByteChannel(); super.startResponse(response); }