Class SipRequestProvider
java.lang.Object
io.github.lunasaw.sip.common.transmit.request.SipRequestProvider
Sip命令request创造器
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic javax.sip.message.Request
createAckRequest
(FromDevice fromDevice, ToDevice toDevice, String callId) 创建ACK请求static javax.sip.message.Request
createAckRequest
(FromDevice fromDevice, ToDevice toDevice, String content, String callId) static javax.sip.message.Request
createAckRequest
(FromDevice fromDevice, javax.sip.address.SipURI sipURI, gov.nist.javax.sip.message.SIPResponse sipResponse) static javax.sip.message.Request
createAckRequest
(FromDevice fromDevice, javax.sip.address.SipURI sipURI, String content, gov.nist.javax.sip.message.SIPResponse sipResponse) static javax.sip.message.Request
createByeRequest
(FromDevice fromDevice, ToDevice toDevice, String callId) 创建Bye请求static javax.sip.message.Request
createInfoRequest
(FromDevice fromDevice, ToDevice toDevice, String content, String callId) 创建INFO 请求static javax.sip.message.Request
createInviteRequest
(FromDevice fromDevice, ToDevice toDevice, String content, String subject, String callId) 创建Invite请求static javax.sip.message.Request
createMessageRequest
(FromDevice fromDevice, ToDevice toDevice, String content, String callId) 创建Message请求static javax.sip.message.Request
createNotifyRequest
(FromDevice fromDevice, ToDevice toDevice, String content, SubscribeInfo subscribeInfo, String callId) 创建Notify请求javax.sip.message.Request
createPlaybackInviteRequest
(FromDevice fromDevice, ToDevice toDevice, String content, String subject, String callId) static javax.sip.message.Request
createRegisterRequest
(FromDevice fromDevice, ToDevice toDevice, Integer expires, String callId) 创建Register请求static javax.sip.message.Request
createRegisterRequestWithAuth
(FromDevice fromDevice, ToDevice toDevice, String callId, Integer expires, javax.sip.header.WWWAuthenticateHeader www) 带签名的注册构造器static javax.sip.message.Request
createSipRequest
(FromDevice fromDevice, ToDevice toDevice, SipMessage sipMessage) 创建SIP请求static javax.sip.message.Request
createSipRequest
(FromDevice fromDevice, ToDevice toDevice, SipMessage sipMessage, SubscribeInfo subscribeInfo) 带订阅创建SIP请求static javax.sip.message.Request
createSipRequest
(javax.sip.address.SipURI requestUri, SipMessage sipMessage, gov.nist.javax.sip.message.SIPResponse sipResponse) static javax.sip.message.Request
createSubscribeRequest
(FromDevice fromDevice, ToDevice toDevice, String content, SubscribeInfo subscribeInfo, String callId) 创建Subscribe请求
-
Constructor Details
-
SipRequestProvider
public SipRequestProvider()
-
-
Method Details
-
createSipRequest
public static javax.sip.message.Request createSipRequest(FromDevice fromDevice, ToDevice toDevice, SipMessage sipMessage, SubscribeInfo subscribeInfo) 带订阅创建SIP请求- Parameters:
fromDevice
- 发送设备toDevice
- 发送目的设备sipMessage
- 内容subscribeInfo
- 订阅消息- Returns:
-
createSipRequest
public static javax.sip.message.Request createSipRequest(FromDevice fromDevice, ToDevice toDevice, SipMessage sipMessage) 创建SIP请求- Parameters:
fromDevice
- 发送设备toDevice
- 发送目的设备sipMessage
- 内容- Returns:
- Request
-
createSipRequest
public static javax.sip.message.Request createSipRequest(javax.sip.address.SipURI requestUri, SipMessage sipMessage, gov.nist.javax.sip.message.SIPResponse sipResponse) -
createMessageRequest
public static javax.sip.message.Request createMessageRequest(FromDevice fromDevice, ToDevice toDevice, String content, String callId) 创建Message请求- Parameters:
fromDevice
- 发送设备toDevice
- 发送目的设备content
- 内容callId
- callId- Returns:
- Request
-
createInviteRequest
public static javax.sip.message.Request createInviteRequest(FromDevice fromDevice, ToDevice toDevice, String content, String subject, String callId) 创建Invite请求- Parameters:
fromDevice
- 发送设备toDevice
- 发送目的设备content
- 内容callId
- callId- Returns:
- Request
-
createPlaybackInviteRequest
public javax.sip.message.Request createPlaybackInviteRequest(FromDevice fromDevice, ToDevice toDevice, String content, String subject, String callId) -
createByeRequest
public static javax.sip.message.Request createByeRequest(FromDevice fromDevice, ToDevice toDevice, String callId) 创建Bye请求- Parameters:
fromDevice
- 发送设备toDevice
- 发送目的设备callId
- callId- Returns:
- Request
-
createRegisterRequest
public static javax.sip.message.Request createRegisterRequest(FromDevice fromDevice, ToDevice toDevice, Integer expires, String callId) 创建Register请求- Parameters:
fromDevice
- 发送设备toDevice
- 发送目的设备callId
- callId- Returns:
- Request
-
createRegisterRequestWithAuth
public static javax.sip.message.Request createRegisterRequestWithAuth(FromDevice fromDevice, ToDevice toDevice, String callId, Integer expires, javax.sip.header.WWWAuthenticateHeader www) 带签名的注册构造器- Parameters:
www
- 认证头- Returns:
- Request
-
createSubscribeRequest
public static javax.sip.message.Request createSubscribeRequest(FromDevice fromDevice, ToDevice toDevice, String content, SubscribeInfo subscribeInfo, String callId) 创建Subscribe请求- Parameters:
fromDevice
- 发送设备toDevice
- 发送目的设备content
- 内容callId
- callId- Returns:
- Request
-
createInfoRequest
public static javax.sip.message.Request createInfoRequest(FromDevice fromDevice, ToDevice toDevice, String content, String callId) 创建INFO 请求- Parameters:
fromDevice
- 发送设备toDevice
- 发送目的设备content
- 内容callId
- callId- Returns:
- Request
-
createAckRequest
public static javax.sip.message.Request createAckRequest(FromDevice fromDevice, ToDevice toDevice, String callId) 创建ACK请求- Parameters:
fromDevice
- 发送设备toDevice
- 发送目的设备callId
- callId- Returns:
- Request
-
createAckRequest
public static javax.sip.message.Request createAckRequest(FromDevice fromDevice, ToDevice toDevice, String content, String callId) -
createAckRequest
public static javax.sip.message.Request createAckRequest(FromDevice fromDevice, javax.sip.address.SipURI sipURI, gov.nist.javax.sip.message.SIPResponse sipResponse) -
createAckRequest
public static javax.sip.message.Request createAckRequest(FromDevice fromDevice, javax.sip.address.SipURI sipURI, String content, gov.nist.javax.sip.message.SIPResponse sipResponse) -
createNotifyRequest
public static javax.sip.message.Request createNotifyRequest(FromDevice fromDevice, ToDevice toDevice, String content, SubscribeInfo subscribeInfo, String callId) 创建Notify请求- Parameters:
fromDevice
- 发送设备toDevice
- 发送目的设备callId
- callId- Returns:
- Request
-