Polish ErrorPageFilter.getDescription javadoc
See gh-7393
This commit is contained in:
parent
004528777f
commit
12d9ebfc02
|
|
@ -185,6 +185,13 @@ public class ErrorPageFilter implements Filter, ErrorPageRegistry {
|
|||
request.getRequestDispatcher(path).forward(request, response);
|
||||
}
|
||||
|
||||
/**
|
||||
* 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()
|
||||
+ (request.getPathInfo() == null ? "" : request.getPathInfo()) + "]";
|
||||
|
|
|
|||
Loading…
Reference in New Issue