Package org.apache.tuscany.sca.binding.jsonrpc

Examples of org.apache.tuscany.sca.binding.jsonrpc.ScaDomainScriptServlet


        }
       
        // get the ScaDomainScriptServlet, if it doesn't yet exist create one
        // this uses removeServletMapping / addServletMapping as theres no getServletMapping facility
        domainScriptMapping = URI.create("http://localhost:" + port + SCA_DOMAIN_SCRIPT).toString();
        ScaDomainScriptServlet scaDomainServlet =
            (ScaDomainScriptServlet)servletHost.getServletMapping(domainScriptMapping);
        if (scaDomainServlet == null) {
            scaDomainServlet = new ScaDomainScriptServlet();
            servletHost.addServletMapping(domainScriptMapping, scaDomainServlet);
        }

        // Add this service to the scadomain script servlet
        scaDomainServlet.addService(binding.getName());
    }
View Full Code Here


        for (String mapping: servletMappings) {
            servletHost.removeServletMapping(mapping);
        }

        // Unregister the service from the scaDomain script servlet
        ScaDomainScriptServlet scaDomainServlet = (ScaDomainScriptServlet) servletHost.getServletMapping(domainScriptMapping);
        if (scaDomainServlet != null) {
            scaDomainServlet.removeService(binding.getName());

            // Remove the servlet if there's no more registered services
            if (scaDomainServlet.getServiceNames().isEmpty()) {
                servletHost.removeServletMapping(domainScriptMapping);
            }
        }

    }
View Full Code Here

        }
       
        // get the ScaDomainScriptServlet, if it doesn't yet exist create one
        // this uses removeServletMapping / addServletMapping as theres no getServletMapping facility
        domainScriptMapping = URI.create("http://localhost:" + port + SCA_DOMAIN_SCRIPT).toString();
        ScaDomainScriptServlet scaDomainServlet =
            (ScaDomainScriptServlet)servletHost.getServletMapping(domainScriptMapping);
        if (scaDomainServlet == null) {
            scaDomainServlet = new ScaDomainScriptServlet();
            servletHost.addServletMapping(domainScriptMapping, scaDomainServlet);
        }

        // Add this service to the scadomain script servlet
        scaDomainServlet.addService(binding.getName());
    }
View Full Code Here

        for (String mapping: servletMappings) {
            servletHost.removeServletMapping(mapping);
        }

        // Unregister the service from the scaDomain script servlet
        ScaDomainScriptServlet scaDomainServlet = (ScaDomainScriptServlet) servletHost.getServletMapping(domainScriptMapping);
        if (scaDomainServlet != null) {
            scaDomainServlet.removeService(binding.getName());

            // Remove the servlet if there's no more registered services
            if (scaDomainServlet.getServiceNames().isEmpty()) {
                servletHost.removeServletMapping(domainScriptMapping);
            }
        }

    }
View Full Code Here

        }
       
        // get the ScaDomainScriptServlet, if it doesn't yet exist create one
        // this uses removeServletMapping / addServletMapping as theres no getServletMapping facility
        domainScriptMapping = URI.create("http://localhost:" + port + SCA_DOMAIN_SCRIPT).toString();
        ScaDomainScriptServlet scaDomainServlet =
            (ScaDomainScriptServlet)servletHost.getServletMapping(domainScriptMapping);
        if (scaDomainServlet == null) {
            scaDomainServlet = new ScaDomainScriptServlet();
            servletHost.addServletMapping(domainScriptMapping, scaDomainServlet);
        }

        // Add this service to the scadomain script servlet
        scaDomainServlet.addService(binding.getName());
    }
View Full Code Here

        for (String mapping: servletMappings) {
            servletHost.removeServletMapping(mapping);
        }

        // Unregister the service from the scaDomain script servlet
        ScaDomainScriptServlet scaDomainServlet = (ScaDomainScriptServlet) servletHost.getServletMapping(domainScriptMapping);
        if (scaDomainServlet != null) {
            scaDomainServlet.removeService(binding.getName());

            // Remove the servlet if there's no more registered services
            if (scaDomainServlet.getServiceNames().isEmpty()) {
                servletHost.removeServletMapping(domainScriptMapping);
            }
        }

    }
View Full Code Here

TOP

Related Classes of org.apache.tuscany.sca.binding.jsonrpc.ScaDomainScriptServlet

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.