Exemple #1
0
        public XcapSelector setNamespace(string prefix, string value)
        {
            IntPtr       cPtr = tinyWRAPPINVOKE.XcapSelector_setNamespace(swigCPtr, prefix, value);
            XcapSelector ret  = (cPtr == IntPtr.Zero) ? null : new XcapSelector(cPtr, false);

            return(ret);
        }
Exemple #2
0
        public XcapSelector setPosAttribute(string qname, uint pos, string att_qname, string att_value)
        {
            IntPtr       cPtr = tinyWRAPPINVOKE.XcapSelector_setPosAttribute(swigCPtr, qname, pos, att_qname, att_value);
            XcapSelector ret  = (cPtr == IntPtr.Zero) ? null : new XcapSelector(cPtr, false);

            return(ret);
        }
Exemple #3
0
        public XcapSelector setPos(string qname, uint pos)
        {
            IntPtr       cPtr = tinyWRAPPINVOKE.XcapSelector_setPos(swigCPtr, qname, pos);
            XcapSelector ret  = (cPtr == IntPtr.Zero) ? null : new XcapSelector(cPtr, false);

            return(ret);
        }
Exemple #4
0
        public XcapSelector setAUID(string auid)
        {
            IntPtr       cPtr = tinyWRAPPINVOKE.XcapSelector_setAUID(swigCPtr, auid);
            XcapSelector ret  = (cPtr == IntPtr.Zero) ? null : new XcapSelector(cPtr, false);

            return(ret);
        }
 internal static HandleRef getCPtr(XcapSelector obj) {
   return (obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr;
 }
Exemple #6
0
 internal static HandleRef getCPtr(XcapSelector obj)
 {
     return((obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr);
 }
Exemple #7
0
        public bool Prepare()
        {
            if (this.prepared)
            {
                LOG.Debug("XCAP service already prepared");
                return true;
            }

            String impu = this.configurationService.Get(
                Configuration.ConfFolder.IDENTITY, Configuration.ConfEntry.IMPU, Configuration.DEFAULT_IDENTITY_IMPU);
            String xcap_ui = this.configurationService.Get(
                    Configuration.ConfFolder.XCAP, Configuration.ConfEntry.USERNAME, impu);
            String xcap_root = this.configurationService.Get(
                    Configuration.ConfFolder.XCAP, Configuration.ConfEntry.XCAP_ROOT, Configuration.DEFAULT_XCAP_ROOT);
            String xcap_password = this.configurationService.Get(
                    Configuration.ConfFolder.XCAP, Configuration.ConfEntry.PASSWORD, Configuration.DEFAULT_XCAP_ROOT);
            int xcap_timeout = this.configurationService.Get(
                    Configuration.ConfFolder.XCAP, Configuration.ConfEntry.TIMEOUT, Configuration.DEFAULT_XCAP_TIMEOUT);

            if (this.xcapStack == null)
            {
                this.xcapStack = new MyXcapStack(this.callback, xcap_ui, xcap_password, xcap_root, xcap_timeout);
                this.xcapSelector = new XcapSelector(this.xcapStack.Stack);
            }
            else
            {
                // update configuration
                if (!this.xcapStack.Configure(xcap_ui, xcap_password, xcap_root, xcap_timeout))
                {
                    LOG.Error("Failed to configure the XCAP stack");
                    return false;
                }
            }

            if ((this.prepared = this.xcapStack.Start()))
            {
                this.xcapStack.AddHeader("Connection", "Keep-Alive");
                this.xcapStack.AddHeader("User-Agent", "XDM-client/OMA1.1");
                this.xcapStack.AddHeader("X-3GPP-Intended-Identity", this.xcapStack.XUI);
            }
            else
            {
                LOG.Error("Failed to start XCAP Stack");
            }

            return this.prepared;
        }