MCPcopy Create free account
hub / github.com/apache/tomcat / getMimeType

Method getMimeType

java/jakarta/servlet/ServletContext.java:133–133  ·  view source on GitHub ↗

Returns the MIME type of the specified file, or null if the MIME type is not known. The MIME type is determined by the configuration of the servlet container, and may be specified in a web application deployment descriptor. Common MIME types are "text/html" and "image

(String file)

Source from the content-addressed store, hash-verified

131 * @return a <code>String</code> specifying the file's MIME type
132 */
133 String getMimeType(String file);
134
135 /**
136 * Returns a directory-like listing of all the paths to resources within the web application whose longest sub-path

Callers 1

requestHandlerMethod · 0.95

Implementers 5

TesterServletContexttest/org/apache/tomcat/unittest/Tester
JspCServletContextjava/org/apache/jasper/servlet/JspCSer
NoPluggabilityServletContextjava/org/apache/catalina/core/Standard
ApplicationContextjava/org/apache/catalina/core/Applicat
ApplicationContextFacadejava/org/apache/catalina/core/Applicat

Calls

no outgoing calls

Tested by

no test coverage detected