Package com.mikuac.shiro.handler
Class ActionHandler
java.lang.Object
com.mikuac.shiro.handler.ActionHandler
Created on 2021/7/7.
-
Constructor Summary
ConstructorsConstructorDescriptionActionHandler(WebSocketProperties wsProp, RateLimiterProperties rateLimiterProps, RateLimiter rateLimiter) -
Method Summary
Modifier and TypeMethodDescriptionaction(org.springframework.web.socket.WebSocketSession session, ActionPath action, Map<String, Object> params) 处理带 keyboard 的请求void处理响应结果rawAction(org.springframework.web.socket.WebSocketSession session, ActionPath action, Map<String, Object> params) 直接进行原始请求
-
Constructor Details
-
ActionHandler
@Autowired public ActionHandler(WebSocketProperties wsProp, RateLimiterProperties rateLimiterProps, RateLimiter rateLimiter)
-
-
Method Details
-
onReceiveActionResp
处理响应结果- Parameters:
resp- 回调结果
-
action
public JsonObjectWrapper action(org.springframework.web.socket.WebSocketSession session, ActionPath action, Map<String, Object> params) 处理带 keyboard 的请求- Parameters:
session- Sessionaction- 请求路径params- 请求参数- Returns:
- 请求结果
-
rawAction
public JsonObjectWrapper rawAction(org.springframework.web.socket.WebSocketSession session, ActionPath action, Map<String, Object> params) 直接进行原始请求- Parameters:
session- Sessionaction- 请求路径params- 请求参数- Returns:
- 请求结果
-