Example #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
}
Example #2
0
/** Creates new TelephoneNumber */
func NewTelephoneNumber() *TelephoneNumber {
	this := &TelephoneNumber{}

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

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

	return this
}
Example #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
}
Example #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
}
Example #6
0
/** Default constructor
 */
func NewChallenge() *Challenge {
	this := &Challenge{}
	this.authParams = core.NewNameValueList("authParams")
	this.authParams.SetSeparator(core.SIPSeparatorNames_COMMA)
	return this
}
Example #7
0
/** remove all parameters
 */
func (this *Challenge) RemoveParameters() {
	this.authParams = core.NewNameValueList("authParams")
}
Example #8
0
func (this *Parameters) super(hdrName string) {
	this.SIPHeader.super(hdrName)
	this.parameters = core.NewNameValueList(hdrName)
}
Example #9
0
/**
 * Clear all Qheaders.
 */
func (this *SipURIImpl) ClearQheaders() {
	this.qheaders = core.NewNameValueList("qheaders")
}
Example #10
0
/**
 * clear all URI Parameters.
 * @since v1.0
 */
func (this *SipURIImpl) ClearUriParms() {
	this.uriParms = core.NewNameValueList("uriparms")
}
Example #11
0
/** Remove all headers.
 */
func (this *SipURIImpl) RemoveHeaders() {
	this.qheaders = core.NewNameValueList("qheaders")
}