Interface ServerMessageProcessorHandler
- All Known Implementing Classes:
DefaultServerMessageProcessorHandler
,TestServerMessageProcessorHandler
public interface ServerMessageProcessorHandler
Server模块MESSAGE请求处理器业务接口
负责具体的MESSAGE请求业务逻辑实现
- Author:
- luna
-
Method Summary
Modifier and TypeMethodDescriptiondefault FromDevice
获取发送设备信息default void
handleMessageError
(javax.sip.RequestEvent evt, String errorMessage) 处理MESSAGE请求错误default void
handleMessageRequest
(javax.sip.RequestEvent evt, FromDevice fromDevice) 处理MESSAGE请求void
keepLiveDevice
(DeviceKeepLiveNotify deviceKeepLiveNotify) 更新设备心跳信息void
updateDeviceAlarm
(DeviceAlarmNotify deviceAlarmNotify) 更新报警信息void
updateDeviceConfig
(String userId, DeviceConfigResponse deviceConfigResponse) void
updateDeviceInfo
(String userId, DeviceInfo deviceInfo) 更新设备信息void
updateDeviceRecord
(String userId, DeviceRecord deviceRecord) 更新设备录像void
updateDeviceResponse
(String userId, DeviceResponse deviceResponse) 更新设备通道void
updateDeviceStatus
(String userId, DeviceStatus deviceStatus) void
updateMediaStatus
(MediaStatusNotify mediaStatusNotify) 更新媒体状态void
updateMobilePosition
(MobilePositionNotify mobilePositionNotify) 更新位置信息void
updateRemoteAddress
(String userId, RemoteAddressInfo remoteAddressInfo) 更新设备地址信息default boolean
validateDevicePermission
(javax.sip.RequestEvent evt) 验证设备权限
-
Method Details
-
handleMessageRequest
处理MESSAGE请求- Parameters:
evt
- 请求事件fromDevice
- 发送设备
-
validateDevicePermission
default boolean validateDevicePermission(javax.sip.RequestEvent evt) 验证设备权限- Parameters:
evt
- 请求事件- Returns:
- 是否有权限
-
getFromDevice
获取发送设备信息- Returns:
- 发送设备
-
handleMessageError
处理MESSAGE请求错误- Parameters:
evt
- 请求事件errorMessage
- 错误消息
-
keepLiveDevice
更新设备心跳信息- Parameters:
deviceKeepLiveNotify
-
-
updateRemoteAddress
更新设备地址信息- Parameters:
userId
-remoteAddressInfo
-
-
updateDeviceAlarm
更新报警信息- Parameters:
deviceAlarmNotify
-
-
updateMobilePosition
更新位置信息- Parameters:
mobilePositionNotify
-
-
updateMediaStatus
更新媒体状态- Parameters:
mediaStatusNotify
-
-
updateDeviceRecord
更新设备录像- Parameters:
userId
-deviceRecord
-
-
updateDeviceResponse
更新设备通道- Parameters:
userId
-deviceResponse
-
-
updateDeviceInfo
更新设备信息- Parameters:
userId
-deviceInfo
-
-
updateDeviceConfig
-
updateDeviceStatus
-