@Test void testGetContentType() throws Exception { File file = new File("delete.me"); file.createNewFile(); assertTrue(file.exists()); FileItem item = new DiskFileItem("fieldName", "text/html", false, "delete.me", 0, file); ApacheMultiPart part = new ApacheMultiPart(item); assertEquals("text/html", part.getContentType()); file.delete(); }
@Override public String getContentType() { return item.getContentType(); }
ApacheMultiPart implements Part { @Override public String getContentType() { return item.getContentType(); } }
ApacheMultiPart implements Part { @Override public String getContentType() { return item.getContentType(); } ApacheMultiPart(FileItem item); }
ApacheMultiPart implements Part { @Override public String getContentType() { return item.getContentType(); } ApacheMultiPart(FileItem item); @Override void delete(); @Override String getContentType(); @Override String getHeader(String name); @Override Collection<String> getHeaderNames(); @Override Collection<String> getHeaders(String name); @Override InputStream getInputStream(); @Override String getName(); @Override long getSize(); @Override String getSubmittedFileName(); @Override void write(String filename); }
ApacheMultiPart implements Part { @Override public String getContentType() { return item.getContentType(); } ApacheMultiPart(FileItem item); @Override void delete(); @Override String getContentType(); @Override String getHeader(String name); @Override Collection<String> getHeaderNames(); @Override Collection<String> getHeaders(String name); @Override InputStream getInputStream(); @Override String getName(); @Override long getSize(); @Override String getSubmittedFileName(); @Override void write(String filename);  }