类 DefaultBlockExceptionHandler
java.lang.Object
com.alibaba.csp.sentinel.adapter.spring.webmvc.callback.DefaultBlockExceptionHandler
- 所有已实现的接口:
BlockExceptionHandler
Default handler for the blocked request.
- 作者:
- kaizi2009
-
构造器概要
构造器 -
方法概要
修饰符和类型方法说明voidhandle(jakarta.servlet.http.HttpServletRequest request, jakarta.servlet.http.HttpServletResponse response, com.alibaba.csp.sentinel.slots.block.BlockException e) Handle the request when blocked.
-
构造器详细资料
-
DefaultBlockExceptionHandler
public DefaultBlockExceptionHandler()
-
-
方法详细资料
-
handle
public void handle(jakarta.servlet.http.HttpServletRequest request, jakarta.servlet.http.HttpServletResponse response, com.alibaba.csp.sentinel.slots.block.BlockException e) throws Exception 从接口复制的说明:BlockExceptionHandlerHandle the request when blocked.- 指定者:
handle在接口中BlockExceptionHandler- 参数:
request- Servlet requestresponse- Servlet responsee- the block exception- 抛出:
Exception- users may throw out the BlockException or other error occurs
-