Package org.cafesip.jiplet.config.jip

Examples of org.cafesip.jiplet.config.jip.ContextMapping


        }

        Iterator i = contextMappings.getContextMapping().iterator();
        while (i.hasNext() == true)
        {
            ContextMapping cmap = (ContextMapping) i.next();
            if (cmap.getContext().equals(context) == true)
            {
                list.add(cmap);
            }
        }
        return list;
View Full Code Here


                // next remove any references to the context left from earlier
                // deployment
                Iterator i = contextMappings.getContextMapping().iterator();
                while (i.hasNext() == true)
                {
                    ContextMapping cmap = (ContextMapping) i.next();
                    if (cmap.getContext().equals(context) == true)
                    {
                        i.remove();
                    }
                }

                // copy the received map object into the cloned map object
                i = rmappings.getContextMapping().iterator();
                while (i.hasNext() == true)
                {
                    ContextMapping m = (ContextMapping) i.next();
                    contextMappings.getContextMapping().add(m);
                }

                // everything looks good. Marshall the content to the
                // mapping.xml file.
View Full Code Here

            synchronized (contextMappings)
            {
                Iterator i = contextMappings.getContextMapping().iterator();
                while (i.hasNext() == true)
                {
                    ContextMapping cmap = (ContextMapping) i.next();
                    if (cmap.getContext().equals(context) == true)
                    {
                        i.remove();
                        removed = true;
                    }
                }
View Full Code Here

            iter = config.getContextMappings().getContextMapping().iterator();
        }

        while (iter.hasNext() == true)
        {
            ContextMapping mapping = (ContextMapping) iter.next();
            String connector_name = mapping.getConnector();
            if (connector_name == null)
            {
                connector_name = JipletContainer.getInstance()
                        .getDefaultConnectorName();
            }

            SipConnector c = JipletContainer.getInstance().findConnector(
                    connector_name);

            if (c == null)
            {
                throw new JipletException("Connector " + connector_name
                        + " specified in the context mapping is not found");
            }

            String ret = c.addMapping(mapping.getMapping(), this);
            if (ret == null)
            {
                return;
            }
View Full Code Here

TOP

Related Classes of org.cafesip.jiplet.config.jip.ContextMapping

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.