title: Jersey: Set response content-type based on file extension or InputStream?
body: <p>I am using Jersey to serve a bunch of media-type files from resource folder inside a Jar file. I have the file URL returned by <code>getClassLoader().getResource()</code> and the InputStream returned by <code>getClassLoader().getResourceAsStream()</code>, is there a way for Jersey to detect the <code>content-type</code> for this file? </p>