Class FileOperationHandler
java.lang.Object
com.ultikits.ultitools.websocket.handlers.FileOperationHandler
- All Implemented Interfaces:
WebSocketMessageHandler
Handler for file operation messages from the panel.
处理来自面板的文件操作消息的处理器。
- Since:
- 6.2.0
- Version:
- 1.0.0
- Author:
- wisdomme
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionFileOperationHandler(FileOperationManager fileManager) Creates a handler with the given file operation manager. -
Method Summary
Modifier and TypeMethodDescriptionGets the message type this handler processes.voidhandle(com.google.gson.JsonObject message) Handles the incoming message.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.ultikits.ultitools.websocket.WebSocketMessageHandler
getPriority
-
Field Details
-
logger
-
fileManager
-
-
Constructor Details
-
FileOperationHandler
Creates a handler with the given file operation manager. 使用给定的文件操作管理器创建处理器。- Parameters:
fileManager- the file operation manager
-
-
Method Details
-
getMessageType
Description copied from interface:WebSocketMessageHandlerGets the message type this handler processes. 获取此处理器处理的消息类型。- Specified by:
getMessageTypein interfaceWebSocketMessageHandler- Returns:
- the message type string (e.g., "pong", "server_status")
-
handle
public void handle(com.google.gson.JsonObject message) Description copied from interface:WebSocketMessageHandlerHandles the incoming message. 处理传入的消息。- Specified by:
handlein interfaceWebSocketMessageHandler- Parameters:
message- the JSON message to handle
-