Skip to content

Commit

Permalink
JETTY-1421 Implement RedirectListener.onException,onConnectionFailed
Browse files Browse the repository at this point in the history
  • Loading branch information
dekellum authored and jmcc0nn3ll committed Sep 28, 2011
1 parent d37f2ca commit 40b25e6
Showing 1 changed file with 24 additions and 1 deletion.
Expand Up @@ -170,5 +170,28 @@ public void onRetry()

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 );
}
}

0 comments on commit 40b25e6

Please sign in to comment.