org.melati.servlet
Class DefaultFileFormDataAdaptorFactory
java.lang.Object
org.melati.servlet.FormDataAdaptorFactory
org.melati.servlet.DefaultFileFormDataAdaptorFactory
- Direct Known Subclasses:
- PoemFileFormDataAdaptorFactory
public class DefaultFileFormDataAdaptorFactory
- extends FormDataAdaptorFactory
Save the uploaded file to disk in a particular directory with a particular
URL.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
uploadDir
protected String uploadDir
uploadURL
protected String uploadURL
DefaultFileFormDataAdaptorFactory
public DefaultFileFormDataAdaptorFactory()
getUploadDir
public String getUploadDir()
- Return the directory to save files in.
- Returns:
- the directory as a
String
setUploadDir
public void setUploadDir(String dir)
- Set the directory to save files in.
- Parameters:
dir
- The value to set it to
getUploadURL
public String getUploadURL()
- Returns:
- the URL to the uploadDir
setUploadURL
public void setUploadURL(String url)
- Set the URL to the uploadDir.
- Parameters:
url
- The value to set it to
getIt
public FormDataAdaptor getIt(Melati melati,
MultipartFormField field)
- Get the
FormDataAdaptor
.
- Specified by:
getIt
in class FormDataAdaptorFactory
- Parameters:
melati
- The Melati
field
- A MultipartFormField
- Returns:
- The
FormDataAdaptor
.
Copyright © 2000-2010 PanEris. All Rights Reserved.