private String inferMimeType(ServletRequest request) {
      String path = ((HttpServletRequest)request).getRequestURI();
      ServletContextHandler.Context sContext =
              (ServletContextHandler.Context)config.getServletContext();
      String mime = sContext.getMimeType(path);
      return (mime == null) ? null : mime;
    }
Infer the mime type for the response based on the extension of the request
URI. Returns null if unknown.
common/src/java/org/apache/hive/http/HttpServer.java