Examples of HttpServer


Examples of br.com.objectos.rio.HttpServer

  @Override
  protected void executeCommand(EclipsePrepareOptions options) {
    options.all();

    HttpServer server = options.fileServer();
    Directory eclipseVar = dirs.eclipseVar();
    File eclipseTar = eclipseVar.fileAt("eclipse-jee-kepler-SR1-linux-gtk-x86_64.tar.gz");
    Directory eclipseDir = eclipseVar.dirAt("eclipse");

    infoAction("dirs");
View Full Code Here

Examples of com.alibaba.dubbo.remoting.http.HttpServer

    public <T> Exporter<T> export(Invoker<T> invoker) throws RpcException {
        final URL url = invoker.getUrl();
        final String uri = url.getAbsolutePath(); // service uri also exporter cache key.

        String addr = url.getIp() + ":" + url.getPort();
        HttpServer server = serverMap.get(addr);
        if (server == null) {
            server = httpTransporter.bind(url, new HessianHandler());
            serverMap.put(addr, server);
        }
View Full Code Here

Examples of com.alibaba.jstorm.daemon.supervisor.Httpserver

      data = createNimbusData(conf, inimbus);

      initFollowerThread(conf);

      int port = ConfigExtension.getNimbusDeamonHttpserverPort(conf);
      hs = new Httpserver(port, conf);
      hs.start();

      initContainerHBThread(conf);
   
      while (!data.isLeader())
View Full Code Here

Examples of com.bbn.openmap.layer.util.http.HttpServer

     * @return the HttpServer that got constructed, <code>null</code>
     *         if there was a problem.
     */
    public static HttpServer startHttpServer(int port) {
        try {
            HttpServer server = new HttpServer(port, true);
            server.addHttpRequestListener(new TableListener());
            return server;
        } catch (java.io.IOException e) {
            Debug.output("Unable to start http server:");
            return null;
        }
View Full Code Here

Examples of com.consol.citrus.http.server.HttpServer

        Map<String, HttpServer> servers = beanDefinitionContext.getBeansOfType(HttpServer.class);
       
        Assert.assertEquals(servers.size(), 5);
       
        // 1st message sender
        HttpServer server = servers.get("httpServer1");
        Assert.assertNull(server.getConnector());
        Assert.assertNull(server.getServletHandler());
        Assert.assertNull(server.getSecurityHandler());
        Assert.assertEquals(server.getConnectors().length, 0);
        Assert.assertEquals(server.getName(), "httpServer1");
        Assert.assertEquals(server.getPort(), 8081);
        Assert.assertEquals(server.getContextConfigLocation(), "classpath:com/consol/citrus/http/citrus-servlet-context.xml");
        Assert.assertEquals(server.getResourceBase(), "src/main/resources");
        Assert.assertFalse(server.isAutoStart());
        Assert.assertFalse(server.isUseRootContextAsParent());
        Assert.assertEquals(server.getContextPath(), "/");
        Assert.assertEquals(server.getServletName(), "httpServer1-servlet");
        Assert.assertEquals(server.getServletMappingPath(), "/*");

        // 2nd message sender
        server = servers.get("httpServer2");
        Assert.assertNotNull(server.getConnector());
        Assert.assertEquals(server.getMessageConverter(), beanDefinitionContext.getBean("messageConverter"));
        Assert.assertEquals(server.getConnector(), beanDefinitionContext.getBean("connector"));
        Assert.assertEquals(server.getConnectors().length, 0);
        Assert.assertEquals(server.getName(), "httpServer2");
        Assert.assertEquals(server.getPort(), 8082);
        Assert.assertEquals(server.getContextConfigLocation(), "classpath:com/consol/citrus/http/servlet-context.xml");
        Assert.assertEquals(server.getResourceBase(), "src/citrus/resources");
        Assert.assertFalse(server.isAutoStart());
        Assert.assertTrue(server.isUseRootContextAsParent());
        Assert.assertEquals(server.getContextPath(), "/citrus");
        Assert.assertEquals(server.getServletName(), "citrus-http");
        Assert.assertEquals(server.getServletMappingPath(), "/foo");
       
        // 3rd message sender
        server = servers.get("httpServer3");
        Assert.assertNull(server.getConnector());
        Assert.assertNotNull(server.getConnectors());
        Assert.assertEquals(server.getConnectors().length, beanDefinitionContext.getBean("connectors", List.class).size());
        Assert.assertEquals(server.getName(), "httpServer3");
        Assert.assertEquals(server.getPort(), 8083);
        Assert.assertEquals(server.getContextConfigLocation(), "classpath:com/consol/citrus/http/citrus-servlet-context.xml");
        Assert.assertEquals(server.getResourceBase(), "src/main/resources");
        Assert.assertFalse(server.isAutoStart());
        Assert.assertFalse(server.isUseRootContextAsParent());
        Assert.assertEquals(server.getServletName(), "httpServer3-servlet");
       
        // 4th message sender
        server = servers.get("httpServer4");
        Assert.assertNull(server.getConnector());
        Assert.assertNotNull(server.getServletHandler());
        Assert.assertEquals(server.getServletHandler(), beanDefinitionContext.getBean("servletHandler"));
        Assert.assertEquals(server.getName(), "httpServer4");
        Assert.assertEquals(server.getPort(), 8084);
        Assert.assertEquals(server.getContextConfigLocation(), "classpath:com/consol/citrus/http/citrus-servlet-context.xml");
        Assert.assertEquals(server.getResourceBase(), "src/main/resources");
        Assert.assertFalse(server.isAutoStart());
        Assert.assertFalse(server.isUseRootContextAsParent());
        Assert.assertEquals(server.getServletName(), "httpServer4-servlet");
        Assert.assertNotNull(server.getInterceptors());
        Assert.assertEquals(server.getInterceptors().size(), 0L);
       
        // 5th message sender
        server = servers.get("httpServer5");
        Assert.assertNull(server.getConnector());
        Assert.assertNotNull(server.getSecurityHandler());
        Assert.assertEquals(server.getSecurityHandler(), beanDefinitionContext.getBean("securityHandler"));
        Assert.assertEquals(server.getName(), "httpServer5");
        Assert.assertEquals(server.getPort(), 8085);
        Assert.assertEquals(server.getContextConfigLocation(), "classpath:com/consol/citrus/http/citrus-servlet-context.xml");
        Assert.assertEquals(server.getResourceBase(), "src/main/resources");
        Assert.assertFalse(server.isAutoStart());
        Assert.assertFalse(server.isUseRootContextAsParent());
        Assert.assertEquals(server.getServletName(), "httpServer5-servlet");
        Assert.assertNotNull(server.getInterceptors());
        Assert.assertEquals(server.getInterceptors().size(), 2L);
    }
View Full Code Here

Examples of com.davfx.ninio.http.HttpServer

    Address a = address;
    if (port >= 0) {
      a = new Address(port);
    }
   
    new HttpServer(q, trust, a, new HttpServerHandlerFactory() {
      @Override
      public HttpServerHandler create() {
        return new HttpServerHandlerToSimpleHttpServerHandler(handler);
      }
     
View Full Code Here

Examples of com.dbxml.labrador.http.HTTPServer

      fis.close();
      return b;
   }

   public static void main(String[] args) {
      HTTPServer server = new HTTPServer();
      server.setDaemon(false);
      server.start();

      new FileServer(new ID("FileServer"));
   }
View Full Code Here

Examples of com.github.dreamhead.moco.HttpServer

        ActualSocketServer thisServer = (ActualSocketServer) socketServer;
        return thisServer.mergeHttpServer((ActualSocketServer)parsedServer);
    }

    private HttpServer createHttpServer(Iterable<? extends RunnerSetting> settings, StartArgs startArgs) {
        HttpServer server = createBaseHttpServer(settings, startArgs);
        server.request(by(uri("/favicon.ico"))).response(with(pathResource("favicon.png")), header("Content-Type", "image/png"));
        return server;
    }
View Full Code Here

Examples of com.google.jstestdriver.HttpServer

    }
    StringBuilder urlBuilder =
        new StringBuilder(defaultConfiguration.getServer(serverAddress, port, prefix));
    urlBuilder.append("/");
    urlBuilder.append("quit");
    new HttpServer(new NullStopWatch()).ping(urlBuilder.toString());

  }
View Full Code Here

Examples of com.linkedin.r2.transport.http.server.HttpServer

    TransportDispatcher dispatcher = new DelegatingTransportDispatcher(new RestLiServer(config,
                                                                                        resourceFactory,
                                                                                        engine));

    final FilterChain fc = FilterChains.empty().addLast(new SimpleLoggingFilter());
    final HttpServer server = new HttpServerFactory(fc).createServer(port,
                                                               HttpServerFactory.DEFAULT_CONTEXT_PATH,
                                                               NUM_THREADS,
                                                               dispatcher,
                                                               enableAsync,
                                                               enableAsync ? ASYNC_TIMEOUT : -1);
    return new HttpServer()
    {
      @Override
      public void start()
          throws IOException
      {
        server.start();
      }

      @Override
      public void stop()
          throws IOException
      {
        server.stop();
        engine.shutdown();
        executor.shutdown();
        scheduler.shutdown();
      }

      @Override
      public void waitForStop()
          throws InterruptedException
      {
        server.waitForStop();
      }
    };
  }
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.