Class ActionHandler

java.lang.Object
com.mikuac.shiro.handler.ActionHandler

@Component public class ActionHandler extends Object
Created on 2021/7/7.
  • Constructor Details

  • Method Details

    • onReceiveActionResp

      public void onReceiveActionResp(JsonObjectWrapper resp)
      处理响应结果
      Parameters:
      resp - 回调结果
    • action

      public JsonObjectWrapper action(org.springframework.web.socket.WebSocketSession session, ActionPath action, Map<String,Object> params)
      处理带 keyboard 的请求
      Parameters:
      session - Session
      action - 请求路径
      params - 请求参数
      Returns:
      请求结果
    • rawAction

      public JsonObjectWrapper rawAction(org.springframework.web.socket.WebSocketSession session, ActionPath action, Map<String,Object> params)
      直接进行原始请求
      Parameters:
      session - Session
      action - 请求路径
      params - 请求参数
      Returns:
      请求结果