List of usage examples for org.apache.commons.fileupload FileUploadBase CONTENT_TYPE
String CONTENT_TYPE
To view the source code for org.apache.commons.fileupload FileUploadBase CONTENT_TYPE.
Click Source Link
From source file:com.github.davidcarboni.encryptedfileupload.MockHttpServletRequest.java
/** * Creates a new instance with the given request data * and content type.//from ww w.j a v a 2 s . c om */ public MockHttpServletRequest(final InputStream requestData, final long requestLength, final String strContentType) { m_requestData = requestData; length = requestLength; m_strContentType = strContentType; m_headers.put(FileUploadBase.CONTENT_TYPE, strContentType); }
From source file:com.netfinworks.rest.convert.MockHttpServletRequest.java
/** * Creates a new instance with the given request data * and content type./* w w w. j a v a2s .c o m*/ */ public MockHttpServletRequest(final InputStream requestData, final int requestLength, final String strContentType) { m_requestData = requestData; length = requestLength; m_strContentType = strContentType; m_headers.put(FileUploadBase.CONTENT_TYPE, strContentType); }