Class SipRequestBuilderFactory
java.lang.Object
io.github.lunasaw.sip.common.transmit.request.SipRequestBuilderFactory
SIP请求构建器工厂类
提供统一的构建器获取接口和便捷的构建方法
- Author:
- luna
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic javax.sip.message.RequestcreateAckRequest(FromDevice fromDevice, ToDevice toDevice, String callId) 创建ACK请求static javax.sip.message.RequestcreateAckRequest(FromDevice fromDevice, ToDevice toDevice, String content, String callId) 创建带内容的ACK请求static javax.sip.message.RequestcreateByeRequest(FromDevice fromDevice, ToDevice toDevice, String callId) 创建BYE请求static javax.sip.message.RequestcreateInfoRequest(FromDevice fromDevice, ToDevice toDevice, String content, String callId) 创建INFO请求static javax.sip.message.RequestcreateInviteRequest(FromDevice fromDevice, ToDevice toDevice, String content, String subject, String callId) 创建INVITE请求static javax.sip.message.RequestcreateMessageRequest(FromDevice fromDevice, ToDevice toDevice, String content, String callId) 创建MESSAGE请求static javax.sip.message.RequestcreateNotifyRequest(FromDevice fromDevice, ToDevice toDevice, String content, String callId) 创建NOTIFY请求static javax.sip.message.RequestcreatePlaybackInviteRequest(FromDevice fromDevice, ToDevice toDevice, String content, String subject, String callId) 创建回放INVITE请求static javax.sip.message.RequestcreateRegisterRequest(FromDevice fromDevice, ToDevice toDevice, Integer expires, String callId) 创建REGISTER请求static javax.sip.message.RequestcreateRegisterRequestWithAuth(FromDevice fromDevice, ToDevice toDevice, String callId, Integer expires, javax.sip.header.WWWAuthenticateHeader www) 创建带认证的REGISTER请求static javax.sip.message.RequestcreateSipRequest(FromDevice fromDevice, ToDevice toDevice, SipMessage sipMessage) 通用SIP请求构建方法static javax.sip.message.RequestcreateSipRequest(FromDevice fromDevice, ToDevice toDevice, SipMessage sipMessage, SubscribeInfo subscribeInfo) 通用SIP请求构建方法(带订阅信息)static javax.sip.message.RequestcreateSubscribeRequest(FromDevice fromDevice, ToDevice toDevice, String content, SubscribeInfo subscribeInfo, String callId) 创建SUBSCRIBE请求static AckRequestBuilder获取ACK请求构建器static ByeRequestBuilder获取BYE请求构建器static InfoRequestBuilder获取INFO请求构建器static InviteRequestBuilder获取INVITE请求构建器static MessageRequestBuilder获取MESSAGE请求构建器static NotifyRequestBuilder获取NOTIFY请求构建器static RegisterRequestBuilder获取REGISTER请求构建器static SubscribeRequestBuilder获取SUBSCRIBE请求构建器
-
Constructor Details
-
SipRequestBuilderFactory
public SipRequestBuilderFactory()
-
-
Method Details
-
getMessageBuilder
获取MESSAGE请求构建器 -
getInviteBuilder
获取INVITE请求构建器 -
getByeBuilder
获取BYE请求构建器 -
getRegisterBuilder
获取REGISTER请求构建器 -
getSubscribeBuilder
获取SUBSCRIBE请求构建器 -
getInfoBuilder
获取INFO请求构建器 -
getAckBuilder
获取ACK请求构建器 -
getNotifyBuilder
获取NOTIFY请求构建器 -
createMessageRequest
public static javax.sip.message.Request createMessageRequest(FromDevice fromDevice, ToDevice toDevice, String content, String callId) 创建MESSAGE请求 -
createInviteRequest
public static javax.sip.message.Request createInviteRequest(FromDevice fromDevice, ToDevice toDevice, String content, String subject, String callId) 创建INVITE请求 -
createPlaybackInviteRequest
public static javax.sip.message.Request createPlaybackInviteRequest(FromDevice fromDevice, ToDevice toDevice, String content, String subject, String callId) 创建回放INVITE请求 -
createByeRequest
public static javax.sip.message.Request createByeRequest(FromDevice fromDevice, ToDevice toDevice, String callId) 创建BYE请求 -
createRegisterRequest
public static javax.sip.message.Request createRegisterRequest(FromDevice fromDevice, ToDevice toDevice, Integer expires, String callId) 创建REGISTER请求 -
createRegisterRequestWithAuth
public static javax.sip.message.Request createRegisterRequestWithAuth(FromDevice fromDevice, ToDevice toDevice, String callId, Integer expires, javax.sip.header.WWWAuthenticateHeader www) 创建带认证的REGISTER请求 -
createSubscribeRequest
public static javax.sip.message.Request createSubscribeRequest(FromDevice fromDevice, ToDevice toDevice, String content, SubscribeInfo subscribeInfo, String callId) 创建SUBSCRIBE请求 -
createInfoRequest
public static javax.sip.message.Request createInfoRequest(FromDevice fromDevice, ToDevice toDevice, String content, String callId) 创建INFO请求 -
createAckRequest
public static javax.sip.message.Request createAckRequest(FromDevice fromDevice, ToDevice toDevice, String callId) 创建ACK请求 -
createAckRequest
public static javax.sip.message.Request createAckRequest(FromDevice fromDevice, ToDevice toDevice, String content, String callId) 创建带内容的ACK请求 -
createNotifyRequest
public static javax.sip.message.Request createNotifyRequest(FromDevice fromDevice, ToDevice toDevice, String content, String callId) 创建NOTIFY请求 -
createSipRequest
public static javax.sip.message.Request createSipRequest(FromDevice fromDevice, ToDevice toDevice, SipMessage sipMessage) 通用SIP请求构建方法 -
createSipRequest
public static javax.sip.message.Request createSipRequest(FromDevice fromDevice, ToDevice toDevice, SipMessage sipMessage, SubscribeInfo subscribeInfo) 通用SIP请求构建方法(带订阅信息)
-