org.apache.tomcat.util.http.fileupload.FileItemIterator Java Examples

The following examples show how to use org.apache.tomcat.util.http.fileupload.FileItemIterator. You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example #1
Source File: ServletFileUpload.java    From Tomcat8-Source-Read with MIT License 2 votes vote down vote up
/**
 * Processes an <a href="http://www.ietf.org/rfc/rfc1867.txt">RFC 1867</a>
 * compliant <code>multipart/form-data</code> stream.
 *
 * @param request The servlet request to be parsed.
 *
 * @return An iterator to instances of <code>FileItemStream</code>
 *         parsed from the request, in the order that they were
 *         transmitted.
 *
 * @throws FileUploadException if there are problems reading/parsing
 *                             the request or storing files.
 * @throws IOException An I/O error occurred. This may be a network
 *   error while communicating with the client or a problem while
 *   storing the uploaded content.
 */
public FileItemIterator getItemIterator(HttpServletRequest request)
throws FileUploadException, IOException {
    return super.getItemIterator(new ServletRequestContext(request));
}
 
Example #2
Source File: ServletFileUpload.java    From Tomcat7.0.67 with Apache License 2.0 2 votes vote down vote up
/**
 * Processes an <a href="http://www.ietf.org/rfc/rfc1867.txt">RFC 1867</a>
 * compliant <code>multipart/form-data</code> stream.
 *
 * @param request The servlet request to be parsed.
 *
 * @return An iterator to instances of <code>FileItemStream</code>
 *         parsed from the request, in the order that they were
 *         transmitted.
 *
 * @throws FileUploadException if there are problems reading/parsing
 *                             the request or storing files.
 * @throws IOException An I/O error occurred. This may be a network
 *   error while communicating with the client or a problem while
 *   storing the uploaded content.
 */
public FileItemIterator getItemIterator(HttpServletRequest request)
throws FileUploadException, IOException {
    return super.getItemIterator(new ServletRequestContext(request));
}
 
Example #3
Source File: ServletFileUpload.java    From tomcatsrc with Apache License 2.0 2 votes vote down vote up
/**
 * Processes an <a href="http://www.ietf.org/rfc/rfc1867.txt">RFC 1867</a>
 * compliant <code>multipart/form-data</code> stream.
 *
 * @param request The servlet request to be parsed.
 *
 * @return An iterator to instances of <code>FileItemStream</code>
 *         parsed from the request, in the order that they were
 *         transmitted.
 *
 * @throws FileUploadException if there are problems reading/parsing
 *                             the request or storing files.
 * @throws IOException An I/O error occurred. This may be a network
 *   error while communicating with the client or a problem while
 *   storing the uploaded content.
 */
public FileItemIterator getItemIterator(HttpServletRequest request)
throws FileUploadException, IOException {
    return super.getItemIterator(new ServletRequestContext(request));
}