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