@Test public void testGetMultipartContentType() { String fileName = "test1"; String contentType = "image/png"; mockFileFieldWithContentType(fileName, contentType); String actual = this.testee.getMultipartContentType(fileName); assertThat(actual).isEqualTo(contentType); }
@Override public String getMultipartContentType(String name) { final RequestParameter requestParameter = getRequestParameter(name); String contentType = null; if (requestParameter != null && !requestParameter.isFormField()) { contentType = requestParameter.getContentType(); } return contentType; }
MultipartSlingHttpServletRequest extends SlingHttpServletRequestWrapper implements
		MultipartHttpServletRequest { @Override public String getMultipartContentType(String name) { final RequestParameter requestParameter = getRequestParameter(name); String contentType = null; if (requestParameter != null && !requestParameter.isFormField()) { contentType = requestParameter.getContentType(); } return contentType; } }
MultipartSlingHttpServletRequest extends SlingHttpServletRequestWrapper implements
		MultipartHttpServletRequest { @Override public String getMultipartContentType(String name) { final RequestParameter requestParameter = getRequestParameter(name); String contentType = null; if (requestParameter != null && !requestParameter.isFormField()) { contentType = requestParameter.getContentType(); } return contentType; } MultipartSlingHttpServletRequest(SlingHttpServletRequest wrappedRequest); }
MultipartSlingHttpServletRequest extends SlingHttpServletRequestWrapper implements
		MultipartHttpServletRequest { @Override public String getMultipartContentType(String name) { final RequestParameter requestParameter = getRequestParameter(name); String contentType = null; if (requestParameter != null && !requestParameter.isFormField()) { contentType = requestParameter.getContentType(); } return contentType; } MultipartSlingHttpServletRequest(SlingHttpServletRequest wrappedRequest); @Override Iterator<String> getFileNames(); @Override MultipartFile getFile(String name); @Override List<MultipartFile> getFiles(String name); @Override Map<String, MultipartFile> getFileMap(); @Override MultiValueMap<String, MultipartFile> getMultiFileMap(); @Override String getMultipartContentType(String name); @Override HttpHeaders getMultipartHeaders(String name); @Override @SuppressWarnings("unchecked") HttpHeaders getRequestHeaders(); @Override HttpMethod getRequestMethod(); }
MultipartSlingHttpServletRequest extends SlingHttpServletRequestWrapper implements
		MultipartHttpServletRequest { @Override public String getMultipartContentType(String name) { final RequestParameter requestParameter = getRequestParameter(name); String contentType = null; if (requestParameter != null && !requestParameter.isFormField()) { contentType = requestParameter.getContentType(); } return contentType; } MultipartSlingHttpServletRequest(SlingHttpServletRequest wrappedRequest); @Override Iterator<String> getFileNames(); @Override MultipartFile getFile(String name); @Override List<MultipartFile> getFiles(String name); @Override Map<String, MultipartFile> getFileMap(); @Override MultiValueMap<String, MultipartFile> getMultiFileMap(); @Override String getMultipartContentType(String name); @Override HttpHeaders getMultipartHeaders(String name); @Override @SuppressWarnings("unchecked") HttpHeaders getRequestHeaders(); @Override HttpMethod getRequestMethod();  }