Interface MessageHandler
- All Superinterfaces:
RequestHandler
- All Known Implementing Classes:
AlarmNotifyMessageHandler
,AlarmQueryMessageClientHandler
,BaseMessageClientHandler
,BaseMessageServerHandler
,BroadcastNotifyMessageHandler
,CatalogNotifyHandler
,CatalogQueryMessageClientHandler
,ConfigDownloadMessageHandler
,DeviceControlMessageHandler
,DeviceInfoMessageServerHandler
,DeviceInfoQueryMessageClientHandler
,DeviceStatusQueryMessageClientHandler
,KeepaliveNotifyMessageHandler
,MediaStatusNotifyMessageHandler
,MessageClientHandlerAbstract
,MessageHandlerAbstract
,MessageServerHandlerAbstract
,MobilePositionNotifyMessageHandler
,NotifyServerHandlerAbstract
,RecordInfoMessageHandler
,RecordInfoQueryMessageClientHandler
,ResponseCatalogMessageHandler
,SubscribeCatalogQueryMessageHandler
,SubscribeClientHandlerAbstract
对message类型的请求单独抽象,根据cmdType进行处理
-
Field Summary
-
Method Summary
Modifier and TypeMethodDescription处理消息类型处理标签void
handForEvt
(javax.sip.RequestEvent event) 处理消息default boolean
是否需要响应ackvoid
responseAck
(javax.sip.RequestEvent event) 响应ackvoid
responseError
(javax.sip.RequestEvent event) 响应errorvoid
responseError
(javax.sip.RequestEvent event, Integer code, String error) 自定义错误回复void
当前接受到的原始消息
-
Field Details
-
QUERY
- See Also:
-
CONTROL
- See Also:
-
NOTIFY
- See Also:
-
RESPONSE
- See Also:
-
-
Method Details
-
responseAck
void responseAck(javax.sip.RequestEvent event) 响应ack- Parameters:
event
- 请求事件
-
responseError
void responseError(javax.sip.RequestEvent event) 响应error- Parameters:
event
- 请求事件
-
responseError
自定义错误回复- Parameters:
event
-code
-error
-
-
handForEvt
void handForEvt(javax.sip.RequestEvent event) 处理消息- Parameters:
event
-
-
getRootType
String getRootType()处理标签- Returns:
-
getCmdType
String getCmdType()处理消息类型- Returns:
-
setXmlStr
当前接受到的原始消息 -
needResponseAck
default boolean needResponseAck()是否需要响应ack- Returns:
-