Search in sources :

Example 1 with MultipartFormFile

use of org.lastaflute.web.ruts.multipart.MultipartFormFile in project fess by codelibs.

the class FessMultipartRequestHandler method addFileParameter.

protected void addFileParameter(final FileItem item) {
    final MultipartFormFile formFile = newActionMultipartFormFile(item);
    elementsFile.put(item.getFieldName(), formFile);
    elementsAll.put(item.getFieldName(), formFile);
}
Also used : MultipartFormFile(org.lastaflute.web.ruts.multipart.MultipartFormFile)

Example 2 with MultipartFormFile

use of org.lastaflute.web.ruts.multipart.MultipartFormFile in project fess by codelibs.

the class FessMultipartRequestHandler method rollback.

// ===================================================================================
//                                                                           Roll-back
//                                                                           =========
@Override
public void rollback() {
    final Iterator<MultipartFormFile> iter = elementsFile.values().iterator();
    while (iter.hasNext()) {
        final MultipartFormFile formFile = iter.next();
        formFile.destroy();
    }
}
Also used : MultipartFormFile(org.lastaflute.web.ruts.multipart.MultipartFormFile)

Aggregations

MultipartFormFile (org.lastaflute.web.ruts.multipart.MultipartFormFile)2