public synchronized boolean isOnTheAir() {
return isOnTheAir;
}
public void handleAccept(Socket socket) throws Exception {
final HttpRequest request = new HttpRequest(socket.getInputStream());
final RssServerSOContainer con = (RssServerSOContainer) get(String.valueOf(port));
if (con == null) {
throw new IOException("Container for port " + port + " not found!");
}
trace("Found container: " + con.getID().getName() + " for target " + request.getURLString());
String body = "";
int code = HttpResponse.SERVER_ERROR;
String path = request.getPath();
// Tests whether this abstract pathname is absolute.
path = path.startsWith("/") ? path.substring(1) : path;
final File feedFile = new File(path);
Date lastModified = new Date();
if (feedFile.exists() && feedFile.isFile()) {