forked from I2P_Developers/i2p.i2p
* Eliminate Jetty dependencies in i2psnark for good.
Required due to webapp classloader changes in Jetty 7, we can no longer access or extend Jetty classes. - Extend javax HttpServlet instead of Jetty's DefaultServlet - Implement BasicServlet to replace functions of DefaultServlet - Add MimeTypes implementation to add to servlet's defaults - Add local mime.properties file, remove checks in I2PSnarkServlet for those we were missing - Eliminate all use of Jetty utility classes including MimeType, Resource, Buffer, Cache, URIUtil, ... TODO: - Use servlet path everywhere, so the war can be renamed - Don't override service()
This commit is contained in:
17
apps/i2psnark/mime.properties
Normal file
17
apps/i2psnark/mime.properties
Normal file
@@ -0,0 +1,17 @@
|
||||
7z = application/x-7z-compressed
|
||||
ape = audio/ape
|
||||
bz2 = application/x-bzip2
|
||||
flac = audio/ogg
|
||||
flv = video/x-flv
|
||||
m4a = audio/mp4a-latm
|
||||
m4v = video/x-m4v
|
||||
mkv = video/x-matroska
|
||||
mp4 = video/mp4
|
||||
nfo = text/plain
|
||||
ogm = video/ogg
|
||||
ogv = video/ogg
|
||||
oga = audio/ogg
|
||||
rar = application/x-rar-compressed
|
||||
war = application/java-archive
|
||||
wma = audio/x-ms-wma
|
||||
wmv = video/x-ms-wmv
|
Reference in New Issue
Block a user