Make ErrorPageFilter.getDescription protected

Make `ErrorPageFilter#getDescription` `protected` instead of `private`
to be able to customize the details for the request logged in case of
an error.

Fixes gh-7380
Closes gh-7393
This commit is contained in:
Stéphane Daviet 2016-11-15 11:19:56 +01:00 committed by Phillip Webb
parent 7daf69a393
commit 004528777f
1 changed files with 1 additions and 1 deletions

View File

@ -185,7 +185,7 @@ public class ErrorPageFilter implements Filter, ErrorPageRegistry {
request.getRequestDispatcher(path).forward(request, response);
}
private String getDescription(HttpServletRequest request) {
protected String getDescription(HttpServletRequest request) {
return "[" + request.getServletPath()
+ (request.getPathInfo() == null ? "" : request.getPathInfo()) + "]";
}