Home
last modified time | relevance | path

Searched refs:getMimeTypeForFile (Results 1 – 4 of 4) sorted by relevance

/external/nanohttpd/core/src/test/java/fi/iki/elonen/
DMimeTest.java43 Assert.assertEquals("text/html", NanoHTTPD.getMimeTypeForFile("xxxx.html")); in testExistingMimeType()
49 … Assert.assertEquals("application/octet-stream", NanoHTTPD.getMimeTypeForFile("xxxx.notExistent")); in testNotExistingMimeType()
54 Assert.assertEquals("video/wrongOverwrite", NanoHTTPD.getMimeTypeForFile("xxxx.ts")); in testOverwritenMimeType()
60 Assert.assertEquals("video/manualOverwrite", NanoHTTPD.getMimeTypeForFile("xxxx.flv")); in testManualMimeType()
/external/nanohttpd/webserver/src/main/java/fi/iki/elonen/
DSimpleWebServer.java225 WebServerPlugin plugin = SimpleWebServer.mimeTypeHandlers.get(getMimeTypeForFile(uri)); in canServeUri()
422 String mimeTypeForFile = getMimeTypeForFile(uri); in defaultRespond()
/external/nanohttpd/nanolets/src/main/java/fi/iki/elonen/router/
DRouterNanoHTTPD.java233 …return NanoHTTPD.newChunkedResponse(getStatus(), getMimeTypeForFile(fileOrdirectory.getName()), fi… in get()
/external/nanohttpd/core/src/main/java/fi/iki/elonen/
DNanoHTTPD.java1756 public static String getMimeTypeForFile(String uri) { in getMimeTypeForFile() method