Class DefaultRegisterProcessorServer
java.lang.Object
io.github.lunasaw.gbproxy.test.user.server.DefaultRegisterProcessorServer
- All Implemented Interfaces:
RegisterProcessorServer
@Component
public class DefaultRegisterProcessorServer
extends Object
implements RegisterProcessorServer
- Author:
- luna
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
deviceOffLine
(String userId, RegisterInfo registerInfo, SipTransaction sipTransaction) 更新事务信息 = 设备下线getTransaction
(String userId) 获取第一次注册的事务void
responseUnauthorized
(String userId) 回复401void
updateRegisterInfo
(String userId, RegisterInfo registerInfo) 更新设备注册信息void
updateSipTransaction
(String userId, SipTransaction sipTransaction) 更新事务信息 = 设备上线
-
Field Details
-
sipTransactionMap
-
deviceMap
-
-
Constructor Details
-
DefaultRegisterProcessorServer
public DefaultRegisterProcessorServer()
-
-
Method Details
-
responseUnauthorized
Description copied from interface:RegisterProcessorServer
回复401- Specified by:
responseUnauthorized
in interfaceRegisterProcessorServer
-
getTransaction
Description copied from interface:RegisterProcessorServer
获取第一次注册的事务- Specified by:
getTransaction
in interfaceRegisterProcessorServer
- Parameters:
userId
- 设备Id- Returns:
-
updateRegisterInfo
Description copied from interface:RegisterProcessorServer
更新设备注册信息- Specified by:
updateRegisterInfo
in interfaceRegisterProcessorServer
- Parameters:
userId
- 设备Id
-
updateSipTransaction
Description copied from interface:RegisterProcessorServer
更新事务信息 = 设备上线- Specified by:
updateSipTransaction
in interfaceRegisterProcessorServer
-
deviceOffLine
Description copied from interface:RegisterProcessorServer
更新事务信息 = 设备下线- Specified by:
deviceOffLine
in interfaceRegisterProcessorServer
-