Class DefaultServerNotifyProcessorHandler
java.lang.Object
io.github.lunasaw.gbproxy.server.transmit.request.notify.DefaultServerNotifyProcessorHandler
- All Implemented Interfaces:
ServerNotifyProcessorHandler
@Component
@ConditionalOnMissingBean(ServerNotifyProcessorHandler.class)
public class DefaultServerNotifyProcessorHandler
extends Object
implements ServerNotifyProcessorHandler
Server模块NOTIFY请求处理器业务接口默认实现
- Author:
- luna
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
handleNotifyError
(javax.sip.RequestEvent evt, String errorMessage) 处理NOTIFY请求错误void
handleNotifyRequest
(javax.sip.RequestEvent evt, FromDevice fromDevice) 处理NOTIFY请求boolean
validateDevicePermission
(javax.sip.RequestEvent evt) 验证设备权限Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface io.github.lunasaw.gbproxy.server.transmit.request.notify.ServerNotifyProcessorHandler
deviceNotifyUpdate
-
Constructor Details
-
DefaultServerNotifyProcessorHandler
public DefaultServerNotifyProcessorHandler()
-
-
Method Details
-
handleNotifyRequest
Description copied from interface:ServerNotifyProcessorHandler
处理NOTIFY请求- Specified by:
handleNotifyRequest
in interfaceServerNotifyProcessorHandler
- Parameters:
evt
- 请求事件fromDevice
- 发送设备
-
validateDevicePermission
public boolean validateDevicePermission(javax.sip.RequestEvent evt) Description copied from interface:ServerNotifyProcessorHandler
验证设备权限- Specified by:
validateDevicePermission
in interfaceServerNotifyProcessorHandler
- Parameters:
evt
- 请求事件- Returns:
- 是否有权限
-
handleNotifyError
Description copied from interface:ServerNotifyProcessorHandler
处理NOTIFY请求错误- Specified by:
handleNotifyError
in interfaceServerNotifyProcessorHandler
- Parameters:
evt
- 请求事件errorMessage
- 错误消息
-