org.directwebremoting.dwrp.FileUpload Maven / Gradle / Ivy
package org.directwebremoting.dwrp;
import java.io.IOException;
import java.util.Map;
import javax.servlet.http.HttpServletRequest;
import org.directwebremoting.extend.FormField;
import org.directwebremoting.extend.ServerException;
/**
* An interface to allow us to plug alternative FileUpload components into DWR,
* and more specifically, to plug in a null implementation if file commons
* file-upload.jar is not available on the classpath.
* @author Joe Walker [joe at getahead dot ltd dot uk]
*/
public interface FileUpload
{
/**
* Process an inbound request into a set of name/value pairs where the
* values could be file uploads.
* @param req The request to parse
* @return A map of the fields in the input request
* @throws ServerException If there is an {@link IOException} while reading the request
*/
public Map parseRequest(HttpServletRequest req) throws ServerException;
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy