Class InfoCommandStrategy
java.lang.Object
io.github.lunasaw.gbproxy.client.transmit.cmd.strategy.AbstractClientCommandStrategy
io.github.lunasaw.gbproxy.client.transmit.cmd.strategy.impl.InfoCommandStrategy
- All Implemented Interfaces:
ClientCommandStrategy
INFO消息类型策略实现
处理INFO请求相关命令
- Author:
- luna
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription获取命令描述获取命令类型protected StringsendCommand(FromDevice fromDevice, ToDevice toDevice, String content, Event errorEvent, Event okEvent) 发送命令protected voidvalidateParams(FromDevice fromDevice, ToDevice toDevice, Object... params) 参数校验Methods inherited from class io.github.lunasaw.gbproxy.client.transmit.cmd.strategy.AbstractClientCommandStrategy
buildCommandContent, execute, execute, generateSn, getDeviceId
-
Constructor Details
-
InfoCommandStrategy
public InfoCommandStrategy()
-
-
Method Details
-
getCommandType
Description copied from interface:ClientCommandStrategy获取命令类型- Returns:
- 命令类型
-
getCommandDescription
Description copied from interface:ClientCommandStrategy获取命令描述- Returns:
- 命令描述
-
sendCommand
protected String sendCommand(FromDevice fromDevice, ToDevice toDevice, String content, Event errorEvent, Event okEvent) Description copied from class:AbstractClientCommandStrategy发送命令- Overrides:
sendCommandin classAbstractClientCommandStrategy- Parameters:
fromDevice- 发送设备toDevice- 接收设备content- 命令内容errorEvent- 错误事件okEvent- 成功事件- Returns:
- callId
-
validateParams
Description copied from class:AbstractClientCommandStrategy参数校验- Overrides:
validateParamsin classAbstractClientCommandStrategy- Parameters:
fromDevice- 发送设备toDevice- 接收设备params- 参数
-