if (method == null) {
return null;
} else if ((method.equals("GET")) || (method.equals("POST"))) {
if (request.getRequestFile().isDirectory()) {
return new DirectoryIndexHandler(request, response);
}
for (final Map.Entry<String, RequestHandlerFactory> entry : Tornado.getRequestHandler().entrySet()) {
final String ext = request.getRequestFileExtension();
final String handler = entry.getKey();