title: JAX-RS HTTP multipart request
body: <p>How to implement <em>multipart/form-data</em> request (file upload) handler with JAX-RS without vendor specific libraries? So far I haven't found other way than to inject the <code>HttpServletRequest</code> and use the Servlet API to access the form data.</p>
  
  <p>Yet <code>HttpServletRequest#getParts()</code> returns an empty list even the request is well formed (confirmed with Wireshark). I read I have to enable multipart configuration for the Jersey Servlet in the web.xml. However, I'm using <code>@ApplicationPath</code> annotation to automatically configure JAX-RS. So what is the correct way to handle multipart requests?</p>