Commit de26b22f authored by Phillip Webb's avatar Phillip Webb

Merge pull request #7393 from stephanedaviet/master

* pr/7393:
  Polish ErrorPageFilter.getDescription javadoc
  Make ErrorPageFilter.getDescription protected
parents 7daf69a3 12d9ebfc
...@@ -185,7 +185,14 @@ public class ErrorPageFilter implements Filter, ErrorPageRegistry { ...@@ -185,7 +185,14 @@ public class ErrorPageFilter implements Filter, ErrorPageRegistry {
request.getRequestDispatcher(path).forward(request, response); request.getRequestDispatcher(path).forward(request, response);
} }
private String getDescription(HttpServletRequest request) { /**
* Return the description for the given request. By default this method will return a
* description based on the request {@code servletPath} and {@code pathInfo}.
* @param request the source request
* @return the description
* @since 1.5.0
*/
protected String getDescription(HttpServletRequest request) {
return "[" + request.getServletPath() return "[" + request.getServletPath()
+ (request.getPathInfo() == null ? "" : request.getPathInfo()) + "]"; + (request.getPathInfo() == null ? "" : request.getPathInfo()) + "]";
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment