Draft fix for the test failure.
git-svn-id: svn+ssh://dev.eclipse.org/svnroot/rt/org.eclipse.jetty/jetty/trunk@1029 7e9141cc-0065-0410-87d8-b60c137991c4
This commit is contained in:
parent
3821e44760
commit
07c6830d6c
|
@ -80,20 +80,18 @@ public class RedirectListener extends HttpEventListenerWrapper
|
||||||
public void onRequestComplete() throws IOException
|
public void onRequestComplete() throws IOException
|
||||||
{
|
{
|
||||||
_requestComplete = true;
|
_requestComplete = true;
|
||||||
checkExchangeComplete();
|
if (checkExchangeComplete())
|
||||||
|
super.onRequestComplete();
|
||||||
super.onRequestComplete();
|
|
||||||
}
|
}
|
||||||
|
|
||||||
public void onResponseComplete() throws IOException
|
public void onResponseComplete() throws IOException
|
||||||
{
|
{
|
||||||
_responseComplete = true;
|
_responseComplete = true;
|
||||||
checkExchangeComplete();
|
if (checkExchangeComplete())
|
||||||
|
super.onResponseComplete();
|
||||||
super.onResponseComplete();
|
|
||||||
}
|
}
|
||||||
|
|
||||||
public void checkExchangeComplete() throws IOException
|
private boolean checkExchangeComplete() throws IOException
|
||||||
{
|
{
|
||||||
if (_redirected && _requestComplete && _responseComplete)
|
if (_redirected && _requestComplete && _responseComplete)
|
||||||
{
|
{
|
||||||
|
@ -108,12 +106,14 @@ public class RedirectListener extends HttpEventListenerWrapper
|
||||||
_exchange.setURI(_location);
|
_exchange.setURI(_location);
|
||||||
|
|
||||||
_destination.resend(_exchange);
|
_destination.resend(_exchange);
|
||||||
|
return false;
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
setDelegationResult(false);
|
setDelegationResult(false);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
public void onRetry()
|
public void onRetry()
|
||||||
|
|
Loading…
Reference in New Issue