414235 - RequestLogHandler configured on a context fails to handle forwarded requests
This commit is contained in:
parent
79ac8ad22d
commit
f5fb412eba
|
@ -69,25 +69,28 @@ public class RequestLogHandler extends HandlerWrapper
|
|||
}
|
||||
finally
|
||||
{
|
||||
if (continuation.isAsync())
|
||||
if (_requestLog != null && baseRequest.getDispatcherType().equals(DispatcherType.REQUEST))
|
||||
{
|
||||
if (continuation.isInitial())
|
||||
continuation.addContinuationListener(new ContinuationListener()
|
||||
{
|
||||
|
||||
public void onTimeout(Continuation continuation)
|
||||
if (continuation.isAsync())
|
||||
{
|
||||
if (continuation.isInitial())
|
||||
continuation.addContinuationListener(new ContinuationListener()
|
||||
{
|
||||
|
||||
}
|
||||
public void onTimeout(Continuation continuation)
|
||||
{
|
||||
|
||||
public void onComplete(Continuation continuation)
|
||||
{
|
||||
_requestLog.log(baseRequest, (Response)response);
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
public void onComplete(Continuation continuation)
|
||||
{
|
||||
_requestLog.log(baseRequest, (Response)response);
|
||||
}
|
||||
});
|
||||
}
|
||||
else
|
||||
_requestLog.log(baseRequest, (Response)response);
|
||||
}
|
||||
else
|
||||
_requestLog.log(baseRequest, (Response)response);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -99,7 +99,7 @@
|
|||
<plugin>
|
||||
<groupId>org.mortbay.jetty</groupId>
|
||||
<artifactId>jetty-maven-plugin</artifactId>
|
||||
<version>7.5.2-SNAPSHOT</version>
|
||||
<version>${project.version}</version>
|
||||
<configuration>
|
||||
<stopPort>8087</stopPort>
|
||||
<stopKey>foo</stopKey>
|
||||
|
|
Loading…
Reference in New Issue