Class FileOperationHandler

java.lang.Object
com.ultikits.ultitools.websocket.handlers.FileOperationHandler
All Implemented Interfaces:
WebSocketMessageHandler

public class FileOperationHandler extends Object implements WebSocketMessageHandler
Handler for file operation messages from the panel.

处理来自面板的文件操作消息的处理器。

Since:
6.2.0
Version:
1.0.0
Author:
wisdomme
  • Field Details

  • Constructor Details

    • FileOperationHandler

      public FileOperationHandler(FileOperationManager fileManager)
      Creates a handler with the given file operation manager. 使用给定的文件操作管理器创建处理器。
      Parameters:
      fileManager - the file operation manager
  • Method Details

    • getMessageType

      public String getMessageType()
      Description copied from interface: WebSocketMessageHandler
      Gets the message type this handler processes. 获取此处理器处理的消息类型。
      Specified by:
      getMessageType in interface WebSocketMessageHandler
      Returns:
      the message type string (e.g., "pong", "server_status")
    • handle

      public void handle(com.google.gson.JsonObject message)
      Description copied from interface: WebSocketMessageHandler
      Handles the incoming message. 处理传入的消息。
      Specified by:
      handle in interface WebSocketMessageHandler
      Parameters:
      message - the JSON message to handle