Examples of HttpServer


Examples of org.browsermob.proxy.jetty.http.HttpServer

            {
                synchronized(_configs)
                {
                    for(int i=0;i<_servers.size();i++)
                    {
                        HttpServer server = (HttpServer)_servers.get(i);
                        if (!server.isStarted())
                            server.start();
                    }
                }
            }
        }
        catch(Exception e)
View Full Code Here

Examples of org.cspoker.server.xml.http.HttpServer

            } catch (RemoteException e) {
              logger.warn("Failed to start RMI server at port " + port, e);
            }
          } else if (type.equals("http")) {
            try {
              (new HttpServer(port, cspokerServer)).start();
            } catch (RemoteException e) {
              logger.warn("Failed to start RMI server at port " + port, e);
            }
          } else if (type.equals("socket")) {
            try {
View Full Code Here

Examples of org.deftserver.web.HttpServer

    HttpServerDescriptor.READ_BUFFER_SIZE = 1500;      // 1500 bytes
    HttpServerDescriptor.WRITE_BUFFER_SIZE = 1500;      // 1500 bytes
   

    logger.debug("Starting up server on port: " + PORT);
    HttpServer server = new HttpServer(application);
    server.listen(PORT);
    IOLoop.INSTANCE.start();
  }
View Full Code Here

Examples of org.glassfish.grizzly.http.server.HttpServer

   
    public static void main(String[] args) throws Exception {
        final int port = args.length > 0
                ? Integer.parseInt(args[0]) : 8080;
       
        final HttpServer httpServer = new HttpServer();
        final NetworkListener networkListener = new NetworkListener(
                "http-listener", "0.0.0.0", port);
        final TCPNIOTransport transport = networkListener.getTransport();
       
        // force to not initialize worker thread pool
        transport.setWorkerThreadPoolConfig(null);
        transport.setSelectorRunnersCount(Runtime.getRuntime().availableProcessors() * 2);
       
        // set PooledMemoryManager
        transport.setMemoryManager(new PooledMemoryManager());
       
        // always keep-alive
        networkListener.getKeepAlive().setIdleTimeoutInSeconds(-1);
        networkListener.getKeepAlive().setMaxRequestsCount(-1);
       
        // disable transaction timeout
        networkListener.setTransactionTimeout(-1);
       
        // remove the features we don't need
        networkListener.registerAddOn(new SimplifyAddOn());
        // add HTTP pipeline optimization
        networkListener.registerAddOn(new HttpPipelineOptAddOn());
       
        // disable file-cache
        networkListener.getFileCache().setEnabled(false);
       
        httpServer.addListener(networkListener);
       
        httpServer.getServerConfiguration().addHttpHandler(
                new RootHttpHandler(), "/");
//        httpServer.getServerConfiguration().addHttpHandler(
//                new PlainTextHttpHandler(), "/plaintext");
//        httpServer.getServerConfiguration().addHttpHandler(
//                new JsonHttpHandler(), "/json");
       
        try {
            httpServer.start();
           
            System.err.print("Server started.\n");
            synchronized (Server.class) {
    Server.class.wait();
            }
        } finally {
            httpServer.shutdown();
        }
    }
View Full Code Here

Examples of org.jboss.com.sun.net.httpserver.HttpServer

            }
        } else {
            certAuthMode = CertAuth.NONE;
        }

        HttpServer httpServer = null;
        if (bindAddress != null) {
            httpServer = HttpServer.create(bindAddress, backlog, configuration);
            httpServer.setExecutor(executor);
        }

        HttpsServer secureHttpServer = null;
        if (secureBindAddress != null) {
            secureHttpServer = HttpsServer.create(secureBindAddress, backlog, configuration);
View Full Code Here

Examples of org.jboss.wsf.spi.http.HttpServer

      EndpointBean epImpl = new EndpointBean();
      endpoint = Endpoint.create(SOAPBinding.SOAP11HTTP_BINDING, epImpl);

      // Create and start the HTTP server
      SPIProvider spiProvider = SPIProviderResolver.getInstance().getProvider();
      HttpServer httpServer = spiProvider.getSPI(HttpServerFactory.class).getHttpServer();
      httpServer.start();
     
      // Create the context and publish the endpoint
      HttpContext context = httpServer.createContext("/jaxws-endpoint");
      endpoint.publish(context);
   }
View Full Code Here

Examples of org.languagetool.server.HTTPServer

  private boolean maybeStartServer() {
    if (config.getRunServer()) {
      try {
        final HTTPServerConfig serverConfig = new HTTPServerConfig(config.getServerPort(), false);
        httpServer = new HTTPServer(serverConfig, true);
        httpServer.run();
        if (enableHttpServerItem != null) {
          enableHttpServerItem.setState(httpServer.isRunning());
          setTrayIcon();
        }
View Full Code Here

Examples of org.latte.scripting.hostobjects.HTTPServer

      System.err.println("usage: org.latte.Run script [args]");
      System.exit(-1);
    }

    ScriptLoader loader  = new ScriptLoader();
    loader.register("httpserver", new HTTPServer())

    ((Javascript)loader.get(script)).eval(null);
  }
View Full Code Here

Examples of org.mortbay.http.HttpServer

            e1.printStackTrace();
        }
        String lpath = nurl.getPath();

        if (server == null) {
            server = new HttpServer();
           
            if (sslPolicy != null) {
                listener = new SslListener(new InetAddrPort(port));
                SslListener secureListener = (SslListener)listener;
               
View Full Code Here

Examples of org.one.stone.soup.server.http.HttpServer

    stopHttpServer(xServer);
    String name = xServer.getAttributeValueByName("name");
    String address = xServer.getAttributeValueByName("address");
    int port = Integer.parseInt(xServer.getAttributeValueByName("port"));
   
    HttpServer server = buildServer(xServer);
    if(server!=null)
    {
      server.setLogger( this );
      servers.put(name,server);
      server.start( name,address,port,100,1000 );
     
      xServer.setAttributeValue("status","Running");
      openForm(getXmlData(),xServer);
     
      log("Server "+name+" started at "+address+" on port "+port);
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.