Interface ServerDeviceSupplier
- All Superinterfaces:
DeviceSupplier
- All Known Implementing Classes:
DefaultServerDeviceSupplier
,TestDeviceSupplier
服务端设备提供器接口
扩展DeviceSupplier接口,提供服务端特定的设备获取能力
设计原则: 1. 继承基础设备提供器接口,保持接口的一致性 2. 提供服务端发送方设备信息获取能力 3. 支持服务端SIP消息发送时的设备标识
- Author:
- luna
-
Method Summary
Modifier and TypeMethodDescriptiondefault boolean
checkDevice
(javax.sip.RequestEvent evt) 设备检查获取服务端发送方设备信息 用于服务端发送SIP消息时标识发送方设备void
setServerFromDevice
(FromDevice fromDevice) 设置服务端发送方设备信息 用于配置服务端的发送方设备标识Methods inherited from interface io.github.lunasaw.sip.common.service.DeviceSupplier
getDevice, getName, getToDevice, getToDevice
-
Method Details
-
getServerFromDevice
FromDevice getServerFromDevice()获取服务端发送方设备信息 用于服务端发送SIP消息时标识发送方设备- Returns:
- 服务端发送方设备信息,如果不存在则返回null
-
setServerFromDevice
设置服务端发送方设备信息 用于配置服务端的发送方设备标识- Parameters:
fromDevice
- 服务端发送方设备信息
-
checkDevice
default boolean checkDevice(javax.sip.RequestEvent evt) 设备检查- Parameters:
evt
-- Returns:
-