@Override public void failed(final Exception cause) { if (cause instanceof IOException || cause instanceof RuntimeException) { if (proxyAuthExchange.isConnectionBased()) { proxyAuthExchange.reset(); } if (targetAuthExchange.isConnectionBased()) { targetAuthExchange.reset(); } } asyncExecCallback.failed(cause); }
this.log.debug("Response contains no valid authentication challenges"); clearCache(host, clientContext); authExchange.reset(); return false; return false; case SUCCESS: authExchange.reset(); break; case CHALLENGED: authExchange.reset(); return false; this.log.debug("Authentication failed"); clearCache(host, clientContext); authExchange.reset(); authExchange.setState(AuthExchange.State.FAILURE); return false; return true; authExchange.reset(); authExchange.reset(); authExchange.setState(AuthExchange.State.CHALLENGED); authExchange.setOptions(authOptions);
final AuthExchange targetAuthExchange = clientContext.getAuthExchange(currentRoute.getTargetHost()); log.debug("Resetting target auth state"); targetAuthExchange.reset(); if (currentRoute.getProxyHost() != null) { final AuthExchange proxyAuthExchange = clientContext.getAuthExchange(currentRoute.getProxyHost()); if (proxyAuthExchange.isConnectionBased()) { log.debug("Resetting proxy auth state"); proxyAuthExchange.reset();
final AuthExchange targetAuthExchange = context.getAuthExchange(currentRoute.getTargetHost()); this.log.debug("Resetting target auth state"); targetAuthExchange.reset(); if (currentRoute.getProxyHost() != null) { final AuthExchange proxyAuthExchange = context.getAuthExchange(currentRoute.getProxyHost()); if (proxyAuthExchange.isConnectionBased()) { this.log.debug("Resetting proxy auth state"); proxyAuthExchange.reset();