![JAR search and dependency download from the Maven repository](/logo.png)
fitnesse.FitNesseServer Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of fitnesse Show documentation
Show all versions of fitnesse Show documentation
The fully integrated standalone wiki, and acceptance testing framework.
// Copyright (C) 2003-2009 by Object Mentor, Inc. All rights reserved.
// Released under the terms of the CPL Common Public License version 1.0.
package fitnesse;
import java.io.IOException;
import java.net.Socket;
import java.util.concurrent.ExecutorService;
import fitnesse.socketservice.SocketServer;
public class FitNesseServer implements SocketServer {
private final FitNesseContext context;
private final ExecutorService executorService;
public FitNesseServer(FitNesseContext context, ExecutorService executorService) {
this.context = context;
this.executorService = executorService;
}
@Override
public void serve(Socket s) throws IOException {
serve(s, 10000);
}
public void serve(Socket s, long requestTimeout) throws IOException {
FitNesseExpediter sender = new FitNesseExpediter(s, context, executorService, requestTimeout);
executorService.submit(sender);
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy