Package org.apache.tuscany.sca.host.http

Examples of org.apache.tuscany.sca.host.http.ServletHost


        ServletHostExtensionPoint servletHosts =
            extensionPointRegistry.getExtensionPoint(ServletHostExtensionPoint.class);

        List<ServletHost> hosts = servletHosts.getServletHosts();
        ServletHost host = null;
        try {
           host = TuscanyServletFilter.getServletHost();
        } catch (NoClassDefFoundError e) {
          // ignore
        }
View Full Code Here


        ServletHostExtensionPoint servletHosts = eps.getExtensionPoint(ServletHostExtensionPoint.class);
        List<ServletHost> hosts = servletHosts.getServletHosts();
        if (hosts == null || hosts.size() < 1) {
            throw new IllegalStateException("No ServletHost found");
        }
        ServletHost servletHost = hosts.get(0);
        if (!(servletHost instanceof WebAppServletHost)) {
            throw new IllegalStateException("unexpected ServletHost type: " + servletHost);
        }
        return (WebAppServletHost) servletHost;
    }
View Full Code Here

                                            DistributedSCABinding binding,
                                            ExtensionPointRegistry extensionPoints,
                                            Map<ClassLoader, List<PolicyHandlerTuple>> policyHandlerClassnames) {

        ServletHostExtensionPoint servletHosts = extensionPoints.getExtensionPoint(ServletHostExtensionPoint.class);
        ServletHost servletHost = servletHosts.getServletHosts().get(0);
        ModelFactoryExtensionPoint modelFactories = extensionPoints.getExtensionPoint(ModelFactoryExtensionPoint.class);
        DataBindingExtensionPoint dataBindings = extensionPoints.getExtensionPoint(DataBindingExtensionPoint.class);

        this.component = component;
        this.reference = reference;
View Full Code Here

    }

    public ServiceBindingProvider createServiceBindingProvider(RuntimeComponent component,
                                                               RuntimeComponentService service,
                                                               WebServiceBinding binding) {
      ServletHost servletHost = null;
     
        if (!hosts.isEmpty()) {
            servletHost = hosts.get(0);
        }
     
View Full Code Here

                                          DistributedSCABinding binding,
                                          ExtensionPointRegistry extensionPoints,
                                          List<PolicyHandlerTuple> policyHandlerClassnames) {

        ServletHostExtensionPoint servletHosts = extensionPoints.getExtensionPoint(ServletHostExtensionPoint.class);
        ServletHost servletHost = servletHosts.getServletHosts().get(0);
        ModelFactoryExtensionPoint modelFactories = extensionPoints.getExtensionPoint(ModelFactoryExtensionPoint.class);
        MessageFactory messageFactory = modelFactories.getFactory(MessageFactory.class);
        DataBindingExtensionPoint dataBindings = extensionPoints.getExtensionPoint(DataBindingExtensionPoint.class);
        UtilityExtensionPoint utilities = extensionPoints.getExtensionPoint(UtilityExtensionPoint.class);
        WorkScheduler workScheduler = utilities.getUtility(WorkScheduler.class);
View Full Code Here

                                            DistributedSCABinding binding,
                                            ExtensionPointRegistry extensionPoints,
                                            Map<ClassLoader, List<PolicyHandlerTuple>> policyHandlerClassnames) {

        ServletHostExtensionPoint servletHosts = extensionPoints.getExtensionPoint(ServletHostExtensionPoint.class);
        ServletHost servletHost = servletHosts.getServletHosts().get(0);
        ModelFactoryExtensionPoint modelFactories = extensionPoints.getExtensionPoint(ModelFactoryExtensionPoint.class);
        DataBindingExtensionPoint dataBindings = extensionPoints.getExtensionPoint(DataBindingExtensionPoint.class);

        this.component = component;
        this.reference = reference;
View Full Code Here

                                          DistributedSCABinding binding,
                                          ExtensionPointRegistry extensionPoints,
                                          Map<ClassLoader, List<PolicyHandlerTuple>> policyHandlerClassnames) {

        ServletHostExtensionPoint servletHosts = extensionPoints.getExtensionPoint(ServletHostExtensionPoint.class);
        ServletHost servletHost = servletHosts.getServletHosts().get(0);
        ModelFactoryExtensionPoint modelFactories = extensionPoints.getExtensionPoint(ModelFactoryExtensionPoint.class);
        MessageFactory messageFactory = modelFactories.getFactory(MessageFactory.class);
        DataBindingExtensionPoint dataBindings = extensionPoints.getExtensionPoint(DataBindingExtensionPoint.class);

        this.binding = binding.getSCABinding();
View Full Code Here

        String httpPort = System.getProperty("notification.httpPort");
        if (httpPort == null) {
            httpPort = DEFAULT_PORT;
        }

        ServletHost servletHost = new ExtensibleServletHost(registry.getExtensionPoint(ServletHostExtensionPoint.class));

        ntm = new NotificationTypeManagerImpl();
        ntm.setServletHost(servletHost);
        ntm.setEncodingRegistry(encodingRegistry);
        ntm.init();
View Full Code Here

        ServletHostExtensionPoint servletHosts = eps.getExtensionPoint(ServletHostExtensionPoint.class);
        List<ServletHost> hosts = servletHosts.getServletHosts();
        if (hosts == null || hosts.size() < 1) {
            throw new IllegalStateException("No ServletHost found");
        }
        ServletHost servletHost = hosts.get(0);
        if (!(servletHost instanceof WebAppServletHost)) {
            throw new IllegalStateException("unexpected ServletHost type: " + servletHost);
        }
        return (WebAppServletHost)servletHost;
    }
View Full Code Here

                                            DistributedSCABinding binding,
                                            ExtensionPointRegistry extensionPoints,
                                            List<PolicyHandlerTuple> policyHandlerClassnames) {

        ServletHostExtensionPoint servletHosts = extensionPoints.getExtensionPoint(ServletHostExtensionPoint.class);
        ServletHost servletHost = servletHosts.getServletHosts().get(0);
        ModelFactoryExtensionPoint modelFactories = extensionPoints.getExtensionPoint(ModelFactoryExtensionPoint.class);
        DataBindingExtensionPoint dataBindings = extensionPoints.getExtensionPoint(DataBindingExtensionPoint.class);

        this.component = component;
        this.reference = reference;
View Full Code Here

TOP

Related Classes of org.apache.tuscany.sca.host.http.ServletHost

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.