Interface SipRequestStrategy
- All Known Implementing Classes:
AbstractSipRequestStrategy
,AckRequestStrategy
,ByeRequestStrategy
,InfoRequestStrategy
,InviteRequestStrategy
,MessageRequestStrategy
,NotifyRequestStrategy
,RegisterRequestStrategy
,SubscribeRequestStrategy
public interface SipRequestStrategy
SIP请求发送策略接口
定义通用的请求发送模式,支持不同的请求类型
- Author:
- lin
-
Method Summary
Modifier and TypeMethodDescriptionsendRequest
(FromDevice fromDevice, ToDevice toDevice, String content, Event errorEvent, Event okEvent) 发送请求sendRequest
(FromDevice fromDevice, ToDevice toDevice, String content, String callId, Event errorEvent, Event okEvent) 发送请求default String
sendRequestWithSubject
(FromDevice fromDevice, ToDevice toDevice, String content, String subject, String callId, Event errorEvent, Event okEvent) 发送带主题的请求sendRequestWithSubscribe
(FromDevice fromDevice, ToDevice toDevice, String content, SubscribeInfo subscribeInfo, String callId, Event errorEvent, Event okEvent) 发送带订阅信息的请求
-
Method Details
-
sendRequest
String sendRequest(FromDevice fromDevice, ToDevice toDevice, String content, Event errorEvent, Event okEvent) 发送请求- Parameters:
fromDevice
- 发送方设备toDevice
- 接收方设备content
- 请求内容errorEvent
- 错误事件处理器okEvent
- 成功事件处理器- Returns:
- 呼叫ID
-
sendRequest
String sendRequest(FromDevice fromDevice, ToDevice toDevice, String content, String callId, Event errorEvent, Event okEvent) 发送请求- Parameters:
fromDevice
- 发送方设备toDevice
- 接收方设备content
- 请求内容callId
- 呼叫IDerrorEvent
- 错误事件处理器okEvent
- 成功事件处理器- Returns:
- 呼叫ID
-
sendRequestWithSubscribe
String sendRequestWithSubscribe(FromDevice fromDevice, ToDevice toDevice, String content, SubscribeInfo subscribeInfo, String callId, Event errorEvent, Event okEvent) 发送带订阅信息的请求- Parameters:
fromDevice
- 发送方设备toDevice
- 接收方设备content
- 请求内容subscribeInfo
- 订阅信息callId
- 呼叫IDerrorEvent
- 错误事件处理器okEvent
- 成功事件处理器- Returns:
- 呼叫ID
-
sendRequestWithSubject
default String sendRequestWithSubject(FromDevice fromDevice, ToDevice toDevice, String content, String subject, String callId, Event errorEvent, Event okEvent) 发送带主题的请求- Parameters:
fromDevice
- 发送方设备toDevice
- 接收方设备content
- 请求内容subject
- 主题callId
- 呼叫IDerrorEvent
- 错误事件处理器okEvent
- 成功事件处理器- Returns:
- 呼叫ID
-