Interface ServerCommandStrategy

All Known Implementing Classes:
AbstractServerCommandStrategy, AckCommandStrategy, ByeCommandStrategy, InfoCommandStrategy, InviteCommandStrategy, MessageCommandStrategy, RegisterCommandStrategy, SubscribeCommandStrategy

public interface ServerCommandStrategy
服务端命令策略接口 定义统一的命令执行策略,支持不同类型的GB28181命令
Author:
luna
  • Method Details

    • execute

      String execute(FromDevice fromDevice, ToDevice toDevice, Map<String,Object> params)
      执行命令
      Parameters:
      fromDevice - 发送设备
      toDevice - 接收设备
      params - 命令参数
      Returns:
      callId
    • execute

      String execute(FromDevice fromDevice, ToDevice toDevice, Event errorEvent, Event okEvent, Map<String,Object> params)
      执行命令(带事件)
      Parameters:
      fromDevice - 发送设备
      toDevice - 接收设备
      errorEvent - 错误事件
      okEvent - 成功事件
      params - 命令参数
      Returns:
      callId
    • execute

      执行命令(使用请求对象)
      Parameters:
      req - 命令请求参数
      Returns:
      callId
    • getCommandType

      String getCommandType()
      获取命令类型
      Returns:
      命令类型
    • getCommandDescription

      String getCommandDescription()
      获取命令描述
      Returns:
      命令描述