1
1
/*
2
- * Copyright 2002-2020 the original author or authors.
2
+ * Copyright 2002-2021 the original author or authors.
3
3
*
4
4
* Licensed under the Apache License, Version 2.0 (the "License");
5
5
* you may not use this file except in compliance with the License.
75
75
public interface HandlerInterceptor {
76
76
77
77
/**
78
- * Intercept the execution of a handler. Called after HandlerMapping determined
79
- * an appropriate handler object, but before HandlerAdapter invokes the handler.
78
+ * Interception point before the execution of a handler. Called after
79
+ * HandlerMapping determined an appropriate handler object, but before
80
+ * HandlerAdapter invokes the handler.
80
81
* <p>DispatcherServlet processes a handler in an execution chain, consisting
81
82
* of any number of interceptors, with the handler itself at the end.
82
83
* With this method, each interceptor can decide to abort the execution chain,
@@ -100,9 +101,10 @@ default boolean preHandle(HttpServletRequest request, HttpServletResponse respon
100
101
}
101
102
102
103
/**
103
- * Intercept the execution of a handler. Called after HandlerAdapter actually
104
- * invoked the handler, but before the DispatcherServlet renders the view.
105
- * Can expose additional model objects to the view via the given ModelAndView.
104
+ * Interception point after successful execution of a handler.
105
+ * Called after HandlerAdapter actually invoked the handler, but before the
106
+ * DispatcherServlet renders the view. Can expose additional model objects
107
+ * to the view via the given ModelAndView.
106
108
* <p>DispatcherServlet processes a handler in an execution chain, consisting
107
109
* of any number of interceptors, with the handler itself at the end.
108
110
* With this method, each interceptor can post-process an execution,
0 commit comments