Package com.mikuac.shiro.handler
Class ActionHandler
java.lang.Object
com.mikuac.shiro.handler.ActionHandler
Created on 2021/7/7.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncom.alibaba.fastjson2.JSONObjectaction(org.springframework.web.socket.WebSocketSession session, ActionPath action, Map<String, Object> params) action.voidonReceiveActionResp(com.alibaba.fastjson2.JSONObject resp) 处理响应结果voidsetRateLimiter(RateLimiter rateLimiter) voidsetRateLimiterProperties(RateLimiterProperties rateLimiterProperties) voidsetWebSocketProperties(WebSocketProperties webSocketProperties)
-
Constructor Details
-
ActionHandler
public ActionHandler()
-
-
Method Details
-
setWebSocketProperties
-
setRateLimiterProperties
-
setRateLimiter
-
onReceiveActionResp
public void onReceiveActionResp(com.alibaba.fastjson2.JSONObject resp) 处理响应结果- Parameters:
resp- 回调结果
-
action
public com.alibaba.fastjson2.JSONObject action(org.springframework.web.socket.WebSocketSession session, ActionPath action, Map<String, Object> params) action.
- Parameters:
session- Sessionaction- 请求路径params- 请求参数- Returns:
- 请求结果
-