Examples of HttpListener


Examples of net.lightbody.bmp.proxy.jetty.http.HttpListener

        //create a stream manager that will be capped to 100 Megabits
        //remember that by default it is disabled!
        streamManager = new StreamManager( 100 * BandwidthLimiter.OneMbps );

        server = new Server();
        HttpListener listener = new SocketListener(new InetAddrPort(getLocalHost(), getPort()));
        server.addListener(listener);
        HttpContext context = new HttpContext();
        context.setContextPath("/");
        server.addContext(context);

        handler = new BrowserMobProxyHandler();
        handler.setJettyServer(server);
        handler.setShutdownLock(new Object());
        client = new BrowserMobHttpClient(streamManager, requestCounter);
        client.prepareForBrowser();
        handler.setHttpClient(client);

        context.addHandler(handler);

        server.start();

        setPort(listener.getPort());
    }
View Full Code Here

Examples of nl.hanze.web.t41.http.HTTPListener

      HTTPSettings.PORT_NUM = Integer.parseInt(args[1]);
    }

    try
    {
      HTTPListener listener = new HTTPListener(HTTPSettings.PORT_NUM, new HTTPHandlerImpl());
      listener.startUp();
    }
    catch (Exception e)
    {
      e.printStackTrace();
    }
View Full Code Here

Examples of org.apache.axis2.osgi.tx.HttpListener

            context.addServiceListener(new AxisConfigServiceListener(configCtx, context));

            Dictionary prop = new Properties();
            prop.put(PROTOCOL, "http");
            //adding the default listener
            context.registerService(TransportListener.class.getName(), new HttpListener(context),
                                    prop);
            log.info("Axis2 environment has started.");
        } catch (AxisFault e) {
            String msg = "Error while creating ConfigurationContext";
            log.error(msg, e);
View Full Code Here

Examples of org.apache.axis2.osgi.tx.HttpListener

            context.addServiceListener(new AxisConfigServiceListener(configCtx, context));

            Dictionary prop = new Properties();
            prop.put(PROTOCOL, "http");
            //adding the default listener
            context.registerService(TransportListener.class.getName(), new HttpListener(context),
                                    prop);
            log.info("Axis2 environment has started.");
        } catch (AxisFault e) {
            String msg = "Error while creating ConfigurationContext";
            log.error(msg, e);
View Full Code Here

Examples of org.apache.openejb.server.httpd.HttpListener

                        if (portInfo == null) continue;

                        try {
                            PortData port = WsBuilder.toPortData(portInfo, deploymentInfo.getInjections(), moduleBaseUrl, deploymentInfo.getClassLoader());

                            HttpListener container = createEjbWsContainer(moduleBaseUrl, port, deploymentInfo);

                            // generate a location if one was not assigned
                            String location = port.getLocation();
                            if (location == null) {
                                location = autoAssignWsLocation(bean, port, contextData, deploymentIdTemplate);
View Full Code Here

Examples of org.apache.openejb.server.httpd.HttpListener

                Context context = deploymentInfo.getJndiEnc();
                Class target = classLoader.loadClass(servlet.servletClass);

                PortData port = WsBuilder.toPortData(portInfo, injections, moduleBaseUrl, classLoader);

                HttpListener container = createPojoWsContainer(moduleBaseUrl, port, portInfo.serviceLink, target, context, webApp.contextRoot);

                if (wsRegistry != null) {
                    // give servlet a reference to the webservice container
                    List<String> addresses = wsRegistry.setWsContainer(virtualHost, webApp.contextRoot, servlet.servletName, container);
View Full Code Here

Examples of org.apache.openejb.server.httpd.HttpListener

            throw new OpenEJBRestRuntimeException("uri syntax is not correct", e);
        }
    }

    private void undeployRestObject(String context) {
        HttpListener listener = rsRegistry.removeListener(context);
        if (listener != null) {
            RsHttpListener.class.cast(listener).undeploy();
        }
    }
View Full Code Here

Examples of org.apache.openejb.server.httpd.HttpListener

                        if (portInfo == null) continue;

                        try {
                            PortData port = WsBuilder.toPortData(portInfo, beanContext.getInjections(), moduleBaseUrl, beanContext.getClassLoader());

                            HttpListener container = createEjbWsContainer(moduleBaseUrl, port, beanContext);

                            // generate a location if one was not assigned
                            String location = port.getLocation();
                            if (location == null) {
                                location = autoAssignWsLocation(bean, port, contextData, deploymentIdTemplate);
View Full Code Here

Examples of org.apache.openejb.server.httpd.HttpListener

                Context context = webContext.getJndiEnc();
                Class target = classLoader.loadClass(servlet.servletClass);

                PortData port = WsBuilder.toPortData(portInfo, injections, moduleBaseUrl, classLoader);

                HttpListener container = createPojoWsContainer(moduleBaseUrl, port, portInfo.serviceLink, target, context, webApp.contextRoot);

                if (wsRegistry != null) {
                    // give servlet a reference to the webservice container
                    List<String> addresses = wsRegistry.setWsContainer(virtualHost, webApp.contextRoot, servlet.servletName, container);
View Full Code Here

Examples of org.apache.openejb.server.httpd.HttpListener

                        if (portInfo == null) continue;

                        try {
                            PortData port = WsBuilder.toPortData(portInfo, beanContext.getInjections(), moduleBaseUrl, beanContext.getClassLoader());

                            HttpListener container = createEjbWsContainer(moduleBaseUrl, port, beanContext);

                            // generate a location if one was not assigned
                            String location = port.getLocation();
                            if (location == null) {
                                location = autoAssignWsLocation(bean, port, contextData, deploymentIdTemplate);
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.