类 SentinelWebInterceptor
java.lang.Object
com.alibaba.csp.sentinel.adapter.spring.webmvc.AbstractSentinelInterceptor
com.alibaba.csp.sentinel.adapter.spring.webmvc.SentinelWebInterceptor
- 所有已实现的接口:
org.springframework.web.servlet.HandlerInterceptor
Spring Web MVC interceptor that integrates with Sentinel.
- 从以下版本开始:
- 1.7.1
- 作者:
- kaizi2009
-
字段概要
从类继承的字段 com.alibaba.csp.sentinel.adapter.spring.webmvc.AbstractSentinelInterceptor
SENTINEL_SPRING_WEB_CONTEXT_NAME -
构造器概要
构造器 -
方法概要
修饰符和类型方法说明protected StringgetContextName(jakarta.servlet.http.HttpServletRequest request) Return the context name of the target web resource.protected StringgetResourceName(jakarta.servlet.http.HttpServletRequest request) Return the resource name of the target web resource.从类继承的方法 com.alibaba.csp.sentinel.adapter.spring.webmvc.AbstractSentinelInterceptor
afterCompletion, getEntryInRequest, handleBlockException, parseOrigin, postHandle, preHandle, removeEntryInRequest, traceExceptionAndExit
-
构造器详细资料
-
SentinelWebInterceptor
public SentinelWebInterceptor() -
SentinelWebInterceptor
-
-
方法详细资料
-
getResourceName
从类复制的说明:AbstractSentinelInterceptorReturn the resource name of the target web resource.- 指定者:
getResourceName在类中AbstractSentinelInterceptor- 参数:
request- web request- 返回:
- the resource name of the target web resource.
-
getContextName
从类复制的说明:AbstractSentinelInterceptorReturn the context name of the target web resource.- 覆盖:
getContextName在类中AbstractSentinelInterceptor- 参数:
request- web request- 返回:
- the context name of the target web resource.
-