T
T. Berger
Hi,
the Servlet API (2.3 in my case) provides the method
public String getMimeType(String file)
which returns the MIME-Type by analyzing the file extension. The problem
is that I need the opposite way, that means getting the extensions to a
specific MIME-Type.
Of course, I could parse my own mime mappings, but I'd like to use those
already provided in Tomcat's web.xml. Is there any way to do this API
conform? I didn't find any methods...
Thanks
Thorsten
the Servlet API (2.3 in my case) provides the method
public String getMimeType(String file)
which returns the MIME-Type by analyzing the file extension. The problem
is that I need the opposite way, that means getting the extensions to a
specific MIME-Type.
Of course, I could parse my own mime mappings, but I'd like to use those
already provided in Tomcat's web.xml. Is there any way to do this API
conform? I didn't find any methods...
Thanks
Thorsten