Package org.eclipse.orion.internal.server.hosting

Examples of org.eclipse.orion.internal.server.hosting.SiteHostingService.start()


    site.setId("s1");
    site.setName("Some site");
    site.setHostHint("foo");
    site.save(user);

    hostingService.start(site, user, "http://whatever/dontcare", new URI("http", null, "test", 80, null, null, null));

    IHostedSite vhost = hostingService.get(site, user);
    assertEquals("https://foo.sites.example.org:1234", vhost.getUrl());
  }
View Full Code Here


    site1.setId("s2");
    site2.setName("Site 2");
    site2.setHostHint("foo");
    site2.save(user);

    hostingService.start(site1, user, "http://whatever/dontcare", new URI("http", null, "test", 80, null, null, null));
    hostingService.start(site2, user, "http://whatever/dontcare", new URI("http", null, "test", 80, null, null, null));

    // Expect: site1 acquires the "foo" URL, and site2 has to settle for foo + {suffix "0"}
    assertEquals("https://foo.sites.example.org", hostingService.get(site1, user).getUrl());
    assertEquals("https://foo0.sites.example.org", hostingService.get(site2, user).getUrl());
View Full Code Here

    site2.setName("Site 2");
    site2.setHostHint("foo");
    site2.save(user);

    hostingService.start(site1, user, "http://whatever/dontcare", new URI("http", null, "test", 80, null, null, null));
    hostingService.start(site2, user, "http://whatever/dontcare", new URI("http", null, "test", 80, null, null, null));

    // Expect: site1 acquires the "foo" URL, and site2 has to settle for foo + {suffix "0"}
    assertEquals("https://foo.sites.example.org", hostingService.get(site1, user).getUrl());
    assertEquals("https://foo0.sites.example.org", hostingService.get(site2, user).getUrl());
  }
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.