lastModified = new Date(feedFile.lastModified());
} else {
code = HttpResponse.NOT_FOUND;
}
// Create connect response and send it back
final HttpResponse response = new HttpResponse(code, body);
if (body != null && body.length() > 0) {
response.setHeader("Connection", "close");
response.setHeader("Content-Type", "text/xml");
response.setHeader("Server", PRODUCT_NAME);
response.setDateHeader("Last-Modified", lastModified);
}
response.writeToStream(socket.getOutputStream());
}