/** * Constructor for <code>SimpleHttpServer</code>. * * @param repository * @param withSsl */ public SimpleHttpServer(Repository repository, boolean withSsl) { this.db = repository; server = new AppServer(0, withSsl ? 0 : -1); }
/** * Create the {@link AppServer}.This default implementation creates a server * without SSLsupport listening for HTTP connections on a dynamically chosen * port, which can be gotten once the server has been started via its * {@link org.eclipse.jgit.junit.http.AppServer#getPort()} method. * Subclasses may override if they need a more specialized server. * * @return the {@link org.eclipse.jgit.junit.http.AppServer}. * @since 4.9 */ protected AppServer createServer() { return new AppServer(); }
public SimpleHttpServer(Repository repository) { this.db = repository; server = new AppServer(); }
public void setUp() throws Exception { super.setUp(); server = new AppServer(); }