
org.directwebremoting.dwrp.FileUpload Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of dwr Show documentation
Show all versions of dwr Show documentation
DWR is easy Ajax for Java. It makes it simple to call Java code directly from Javascript.
It gets rid of almost all the boilerplate code between the web browser and your Java code.
This version 4.0.2 works with Jakarta Servlet 4.0.2.
The newest version!
package org.directwebremoting.dwrp;
import java.io.IOException;
import java.util.Map;
import jakarta.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 - 2025 Weber Informatics LLC | Privacy Policy