Package org.apache.tuscany.binding.jsonrpc.handler

Examples of org.apache.tuscany.binding.jsonrpc.handler.JSONRPCEntryPointServlet


        this.tomcatHost = tomcatHost;
    }

    public EntryPointContext createContext() throws ContextCreationException {
        EntryPointContext epc = super.createContext();
        JSONRPCEntryPointServlet jsonrpcServlet = getServlet();
        jsonrpcServlet.addEntryPoint(epc);
        return epc;
    }
View Full Code Here


        return epc;
    }

    private JSONRPCEntryPointServlet getServlet() {
        String jsonrpcServletMapping = webAppName + "/SCA/jsonrpc";
        JSONRPCEntryPointServlet servlet;
        synchronized (tomcatHost) {
            servlet = (JSONRPCEntryPointServlet) tomcatHost.getMapping(jsonrpcServletMapping);
            if (servlet == null) {
                servlet = new JSONRPCEntryPointServlet();
                tomcatHost.registerMapping(jsonrpcServletMapping, servlet);
                tomcatHost.registerMapping(webAppName + "/SCA/scripts/*", new ScriptGetterServlet());
            }
        }
        return servlet;
View Full Code Here

TOP

Related Classes of org.apache.tuscany.binding.jsonrpc.handler.JSONRPCEntryPointServlet

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.