aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDavid Kellum2011-09-22 03:20:08 (EDT)
committerJesse McConnell2011-09-28 11:30:29 (EDT)
commit40b25e6f5a594b6a68eb2727289137735696aab2 (patch)
tree1b89f199af9a47f07ff8e39dc108b35b3fc91741
parentd37f2ca10c6bb17d237fce75a755ad73f35844ae (diff)
downloadorg.eclipse.jetty.project-40b25e6f5a594b6a68eb2727289137735696aab2.zip
org.eclipse.jetty.project-40b25e6f5a594b6a68eb2727289137735696aab2.tar.gz
org.eclipse.jetty.project-40b25e6f5a594b6a68eb2727289137735696aab2.tar.bz2
JETTY-1421 Implement RedirectListener.onException,onConnectionFailed
-rw-r--r--jetty-client/src/main/java/org/eclipse/jetty/client/RedirectListener.java25
1 files changed, 24 insertions, 1 deletions
diff --git a/jetty-client/src/main/java/org/eclipse/jetty/client/RedirectListener.java b/jetty-client/src/main/java/org/eclipse/jetty/client/RedirectListener.java
index cb06692..140ce9f 100644
--- a/jetty-client/src/main/java/org/eclipse/jetty/client/RedirectListener.java
+++ b/jetty-client/src/main/java/org/eclipse/jetty/client/RedirectListener.java
@@ -170,5 +170,28 @@ public class RedirectListener extends HttpEventListenerWrapper
super.onRetry();
}
-}
+ /**
+ * Delegate failed connection
+ */
+ @Override
+ public void onConnectionFailed( Throwable ex )
+ {
+ setDelegatingRequests(true);
+ setDelegatingResponses(true);
+
+ super.onConnectionFailed( ex );
+ }
+
+ /**
+ * Delegate onException
+ */
+ @Override
+ public void onException( Throwable ex )
+ {
+ setDelegatingRequests(true);
+ setDelegatingResponses(true);
+
+ super.onException( ex );
+ }
+}