reorder some CustomRequestLog methods to be same as jetty-10
Signed-off-by: Lachlan Roberts <lachlan@webtide.com>
This commit is contained in:
parent
b19de0aec3
commit
70a679f5f4
|
@ -557,11 +557,6 @@ public class CustomRequestLog extends ContainerLifeCycle implements RequestLog
|
|||
}
|
||||
}
|
||||
|
||||
private MethodHandle updateLogHandle(MethodHandle logHandle, MethodHandle append, String literal)
|
||||
{
|
||||
return foldArguments(logHandle, dropArguments(dropArguments(append.bindTo(literal), 1, Request.class), 2, Response.class));
|
||||
}
|
||||
|
||||
@SuppressWarnings("unused")
|
||||
private static boolean modify(List<Integer> modifiers, Boolean negated, StringBuilder b, Request request, Response response)
|
||||
{
|
||||
|
@ -571,6 +566,11 @@ public class CustomRequestLog extends ContainerLifeCycle implements RequestLog
|
|||
return modifiers.contains(response.getStatus());
|
||||
}
|
||||
|
||||
private MethodHandle updateLogHandle(MethodHandle logHandle, MethodHandle append, String literal)
|
||||
{
|
||||
return foldArguments(logHandle, dropArguments(dropArguments(append.bindTo(literal), 1, Request.class), 2, Response.class));
|
||||
}
|
||||
|
||||
private MethodHandle updateLogHandle(MethodHandle logHandle, MethodHandle append, MethodHandles.Lookup lookup, String code, String arg, List<Integer> modifiers, boolean negated) throws NoSuchMethodException, IllegalAccessException
|
||||
{
|
||||
MethodType logType = methodType(void.class, StringBuilder.class, Request.class, Response.class);
|
||||
|
|
Loading…
Reference in New Issue