public void completed(HttpResponse response) { if (!message.isConnect()) getStatusHandler().handleIO(false); if (response.getStatusLine().getStatusCode() != HttpStatus.SC_OK) { channel.onError(message, new TransportHttpStatusException( response.getStatusLine().getStatusCode(), response.getStatusLine().getReasonPhrase()) ); return; } InputStream is = null; try { is = response.getEntity().getContent(); channel.onMessage(is); } catch (Exception e) { getStatusHandler().handleException(new TransportIOException(message, "Could not deserialize message", e)); } finally { if (is != null) try { is.close(); } catch (Exception e) { } } }
getStatusHandler().handleException(new TransportIOException(message, "Could not deserialize message", e));
getStatusHandler().handleException(new TransportIOException(message, "Could not deserialize message", e));
public void failed(Exception e) { if (!message.isConnect()) getStatusHandler().handleIO(false); channel.onError(message, e); getStatusHandler().handleException(new TransportIOException(message, "Request failed", e)); }
public void failed(Exception e) { if (!message.isConnect()) getStatusHandler().handleIO(false); if (message.isDisconnect()) { channel.onDisconnect(); return; } channel.onError(message, e); getStatusHandler().handleException(new TransportIOException(message, "Request failed", e)); }
public void failed(Exception e) { if (!message.isConnect()) getStatusHandler().handleIO(false); if (message.isDisconnect()) { channel.onDisconnect(); return; } channel.onError(message, e); getStatusHandler().handleException(new TransportIOException(message, "Request failed", e)); }
getStatusHandler().handleException(new TransportIOException(message, "Could not deserialize message", e)); getStatusHandler().handleException(new TransportIOException(message, "Request failed", e)); getStatusHandler().handleIO(false); TransportIOException f = new TransportIOException(message, "Request failed", e); getStatusHandler().handleException(f); throw f;
getStatusHandler().handleException(new TransportIOException(message, "Could not deserialize message", e)); getStatusHandler().handleException(new TransportIOException(message, "Request failed", e)); getStatusHandler().handleIO(false); TransportIOException f = new TransportIOException(message, "Request failed", e); getStatusHandler().handleException(f); throw f;
getStatusHandler().handleException(new TransportIOException(message, "Could not deserialize message", e)); getStatusHandler().handleException(new TransportIOException(message, "Request failed", e)); getStatusHandler().handleIO(false); TransportIOException f = new TransportIOException(message, "Request failed", e); getStatusHandler().handleException(f); throw f;