title: How to indicate the file name for saving to the browser from a REST service in Jersey?
body: <p>i am trying to have a REST service return a zip file from the local harddrive .
  Following is what i am doing ,</p>
  
  <pre><code>@Path("/interface3/{Ent_id}/{esf_app_id}/{esf_app_ver}")
  public class Interface3Mock {
  
      // This method is called if TEXT_PLAIN is request
      @GET
      @Produces("application/zip")
      public Response  callInterface3_text(
              @PathParam("Ent_id") Integer entitlement_id,
              @PathParam("eapp_id") String eapp_id,
              @PathParam("eapp_ver") String eapp_ver) {
          File f = new File("D:\\Documentation\\Documentation.zip");
  
          String mt = new MimetypesFileTypeMap().getContentType(f);
  
          return Response.ok(f, mt).build();
  
      }
  }
  </code></pre>
  
  <p>Now when i use the browser ie. Internet Explorer and key in the url <code>http://localhost:9788/mockRESTServer/rest/interface3/123456/k123/l345</code>
  i see a file download dialog that says "Do you want to save the file l345`.</p>
  
  <p>i want it to ask me for the zip download ie. <code>D:\\Documentation\\Documentation.zip</code>.
  But somehow it takes up the last parameter in the request URL.</p>