Class SipProcessorObserver
java.lang.Object
io.github.lunasaw.sip.common.transmit.SipProcessorObserver
- All Implemented Interfaces:
EventListener
,javax.sip.SipListener
SIP信令处理类观察者
- Author:
- luna
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic void
addRequestProcessor
(String method, SipRequestProcessor processor) 添加 request订阅static void
addResponseProcessor
(String method, SipResponseProcessor processor) 添加 response订阅static void
addTimeoutProcessor
(String method, ITimeoutProcessor processor) 添加 超时事件订阅void
processDialogTerminated
(javax.sip.DialogTerminatedEvent dialogTerminatedEvent) 会话结束void
processIOException
(javax.sip.IOExceptionEvent exceptionEvent) void
processRequest
(javax.sip.RequestEvent requestEvent) 分发RequestEvent事件void
processResponse
(javax.sip.ResponseEvent responseEvent) 分发ResponseEvent事件void
processTimeout
(javax.sip.TimeoutEvent timeoutEvent) 向超时订阅发送消息void
processTransactionTerminated
(javax.sip.TransactionTerminatedEvent timeoutEvent) 事物结束
-
Constructor Details
-
SipProcessorObserver
public SipProcessorObserver()
-
-
Method Details
-
addRequestProcessor
添加 request订阅- Parameters:
method
- 方法名processor
- 处理程序
-
addResponseProcessor
添加 response订阅- Parameters:
method
- 方法名processor
- 处理程序
-
addTimeoutProcessor
添加 超时事件订阅- Parameters:
processor
- 处理程序
-
processRequest
public void processRequest(javax.sip.RequestEvent requestEvent) 分发RequestEvent事件- Specified by:
processRequest
in interfacejavax.sip.SipListener
- Parameters:
requestEvent
- RequestEvent事件
-
processResponse
public void processResponse(javax.sip.ResponseEvent responseEvent) 分发ResponseEvent事件- Specified by:
processResponse
in interfacejavax.sip.SipListener
- Parameters:
responseEvent
- responseEvent事件
-
processTimeout
public void processTimeout(javax.sip.TimeoutEvent timeoutEvent) 向超时订阅发送消息- Specified by:
processTimeout
in interfacejavax.sip.SipListener
- Parameters:
timeoutEvent
- timeoutEvent事件
-
processIOException
public void processIOException(javax.sip.IOExceptionEvent exceptionEvent) - Specified by:
processIOException
in interfacejavax.sip.SipListener
-
processTransactionTerminated
public void processTransactionTerminated(javax.sip.TransactionTerminatedEvent timeoutEvent) 事物结束- Specified by:
processTransactionTerminated
in interfacejavax.sip.SipListener
- Parameters:
timeoutEvent
- -- an event that indicates that the transaction has transitioned into the terminated state.
-
processDialogTerminated
public void processDialogTerminated(javax.sip.DialogTerminatedEvent dialogTerminatedEvent) 会话结束- Specified by:
processDialogTerminated
in interfacejavax.sip.SipListener
- Parameters:
dialogTerminatedEvent
- -- an event that indicates that the dialog has transitioned into the terminated state.
-