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

public interface MessageHandler extends RequestHandler
对message类型的请求单独抽象,根据cmdType进行处理
  • Field Details

  • Method Details

    • responseAck

      void responseAck(javax.sip.RequestEvent event)
      响应ack
      Parameters:
      event - 请求事件
    • responseError

      void responseError(javax.sip.RequestEvent event)
      响应error
      Parameters:
      event - 请求事件
    • responseError

      void responseError(javax.sip.RequestEvent event, Integer code, String error)
      自定义错误回复
      Parameters:
      event -
      code -
      error -
    • handForEvt

      void handForEvt(javax.sip.RequestEvent event)
      处理消息
      Parameters:
      event -
    • getRootType

      String getRootType()
      处理标签
      Returns:
    • getCmdType

      String getCmdType()
      处理消息类型
      Returns:
    • setXmlStr

      void setXmlStr(String xmlStr)
      当前接受到的原始消息
    • needResponseAck

      default boolean needResponseAck()
      是否需要响应ack
      Returns: