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 TypeMethodDescriptionvoidhandleNotifyError(javax.sip.RequestEvent evt, String errorMessage) 处理NOTIFY请求错误voidhandleNotifyRequest(javax.sip.RequestEvent evt, FromDevice fromDevice) 处理NOTIFY请求booleanvalidateDevicePermission(javax.sip.RequestEvent evt) 验证设备权限Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods 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:
handleNotifyRequestin interfaceServerNotifyProcessorHandler- Parameters:
evt- 请求事件fromDevice- 发送设备
-
validateDevicePermission
public boolean validateDevicePermission(javax.sip.RequestEvent evt) Description copied from interface:ServerNotifyProcessorHandler验证设备权限- Specified by:
validateDevicePermissionin interfaceServerNotifyProcessorHandler- Parameters:
evt- 请求事件- Returns:
- 是否有权限
-
handleNotifyError
Description copied from interface:ServerNotifyProcessorHandler处理NOTIFY请求错误- Specified by:
handleNotifyErrorin interfaceServerNotifyProcessorHandler- Parameters:
evt- 请求事件errorMessage- 错误消息
-