Interface ServerMessageProcessorHandler

All Known Implementing Classes:
DefaultServerMessageProcessorHandler, TestServerMessageProcessorHandler

public interface ServerMessageProcessorHandler
Server模块MESSAGE请求处理器业务接口 负责具体的MESSAGE请求业务逻辑实现
Author:
luna
  • Method Details

    • handleMessageRequest

      default void handleMessageRequest(javax.sip.RequestEvent evt, FromDevice fromDevice)
      处理MESSAGE请求
      Parameters:
      evt - 请求事件
      fromDevice - 发送设备
    • validateDevicePermission

      default boolean validateDevicePermission(javax.sip.RequestEvent evt)
      验证设备权限
      Parameters:
      evt - 请求事件
      Returns:
      是否有权限
    • getFromDevice

      default FromDevice getFromDevice()
      获取发送设备信息
      Returns:
      发送设备
    • handleMessageError

      default void handleMessageError(javax.sip.RequestEvent evt, String errorMessage)
      处理MESSAGE请求错误
      Parameters:
      evt - 请求事件
      errorMessage - 错误消息
    • keepLiveDevice

      void keepLiveDevice(DeviceKeepLiveNotify deviceKeepLiveNotify)
      更新设备心跳信息
      Parameters:
      deviceKeepLiveNotify -
    • updateRemoteAddress

      void updateRemoteAddress(String userId, RemoteAddressInfo remoteAddressInfo)
      更新设备地址信息
      Parameters:
      userId -
      remoteAddressInfo -
    • updateDeviceAlarm

      void updateDeviceAlarm(DeviceAlarmNotify deviceAlarmNotify)
      更新报警信息
      Parameters:
      deviceAlarmNotify -
    • updateMobilePosition

      void updateMobilePosition(MobilePositionNotify mobilePositionNotify)
      更新位置信息
      Parameters:
      mobilePositionNotify -
    • updateMediaStatus

      void updateMediaStatus(MediaStatusNotify mediaStatusNotify)
      更新媒体状态
      Parameters:
      mediaStatusNotify -
    • updateDeviceRecord

      void updateDeviceRecord(String userId, DeviceRecord deviceRecord)
      更新设备录像
      Parameters:
      userId -
      deviceRecord -
    • updateDeviceResponse

      void updateDeviceResponse(String userId, DeviceResponse deviceResponse)
      更新设备通道
      Parameters:
      userId -
      deviceResponse -
    • updateDeviceInfo

      void updateDeviceInfo(String userId, DeviceInfo deviceInfo)
      更新设备信息
      Parameters:
      userId -
      deviceInfo -
    • updateDeviceConfig

      void updateDeviceConfig(String userId, DeviceConfigResponse deviceConfigResponse)
    • updateDeviceStatus

      void updateDeviceStatus(String userId, DeviceStatus deviceStatus)