示例#1
0
func NewSipURIImpl() *SipURIImpl {
	this := &SipURIImpl{}

	this.scheme = core.SIPTransportNames_SIP
	this.uriParms = core.NewNameValueList("uriparms")
	this.qheaders = core.NewNameValueList("qheaders")
	this.qheaders.SetSeparator("&")

	return this
}
示例#2
0
/** Creates new TelephoneNumber */
func NewTelephoneNumber() *TelephoneNumber {
	this := &TelephoneNumber{}

	this.parms = core.NewNameValueList("telparms")

	return this
}
示例#3
0
func NewParameters(hdrName string) *Parameters {
	this := &Parameters{}
	this.SIPHeader.super(hdrName)
	this.parameters = core.NewNameValueList(hdrName)

	return this
}
示例#4
0
func (this *TelephoneNumber) Clone() interface{} {
	retval := &TelephoneNumber{}

	retval.isglobal = this.isglobal
	retval.phoneNumber = this.phoneNumber
	retval.parms = core.NewNameValueList("telparms")

	for e := this.parms.Front(); e != nil; e = e.Next() {
		nv := e.Value.(*core.NameValue)
		retval.parms.AddNameValue(nv.Clone().(*core.NameValue))
	}

	return retval
}
示例#5
0
func (this *URLParser) Tel_parameters() (nvl *core.NameValueList, ParseException error) {
	var nv *core.NameValue
	nvList := core.NewNameValueList("tel_parameters")
	for {
		if nv, ParseException = this.NameValue('='); ParseException != nil {
			return nil, ParseException
		}
		nvList.AddNameValue(nv)
		tok, _ := this.GetLexer().LookAheadK(0)
		if tok == ';' {
			continue
		} else {
			break
		}
	}
	return nvList, nil
}
示例#6
0
/** Default constructor
 */
func NewChallenge() *Challenge {
	this := &Challenge{}
	this.authParams = core.NewNameValueList("authParams")
	this.authParams.SetSeparator(core.SIPSeparatorNames_COMMA)
	return this
}
示例#7
0
/** remove all parameters
 */
func (this *Challenge) RemoveParameters() {
	this.authParams = core.NewNameValueList("authParams")
}
示例#8
0
func (this *Parameters) super(hdrName string) {
	this.SIPHeader.super(hdrName)
	this.parameters = core.NewNameValueList(hdrName)
}
示例#9
0
/**
 * Clear all Qheaders.
 */
func (this *SipURIImpl) ClearQheaders() {
	this.qheaders = core.NewNameValueList("qheaders")
}
示例#10
0
/**
 * clear all URI Parameters.
 * @since v1.0
 */
func (this *SipURIImpl) ClearUriParms() {
	this.uriParms = core.NewNameValueList("uriparms")
}
示例#11
0
/** Remove all headers.
 */
func (this *SipURIImpl) RemoveHeaders() {
	this.qheaders = core.NewNameValueList("qheaders")
}