|
|
|
@ -138,7 +138,7 @@ public class WebRequestTraceFilter extends OncePerRequestFilter implements Order
|
|
|
|
|
add(trace, Include.USER_PRINCIPAL, "userPrincipal",
|
|
|
|
|
(userPrincipal == null ? null : userPrincipal.getName()));
|
|
|
|
|
if (isIncluded(Include.PARAMETERS)) {
|
|
|
|
|
trace.put("parameters", request.getParameterMap());
|
|
|
|
|
trace.put("parameters", getParameterMap(request));
|
|
|
|
|
}
|
|
|
|
|
add(trace, Include.QUERY_STRING, "query", request.getQueryString());
|
|
|
|
|
add(trace, Include.AUTH_TYPE, "authType", request.getAuthType());
|
|
|
|
@ -190,6 +190,12 @@ public class WebRequestTraceFilter extends OncePerRequestFilter implements Order
|
|
|
|
|
return value;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
private Map<String, String[]> getParameterMap(HttpServletRequest request) {
|
|
|
|
|
Map<String, String[]> map = new LinkedHashMap<String, String[]>();
|
|
|
|
|
map.putAll(request.getParameterMap());
|
|
|
|
|
return map;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* Post process request headers before they are added to the trace.
|
|
|
|
|
* @param headers a mutable map containing the request headers to trace
|
|
|
|
|