org.melati.servlet
Class DefaultFileFormDataAdaptorFactory

Package class diagram package DefaultFileFormDataAdaptorFactory
java.lang.Object
  extended by org.melati.servlet.FormDataAdaptorFactory
      extended by 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.


Field Summary
protected  String uploadDir
           
protected  String uploadURL
           
 
Constructor Summary
DefaultFileFormDataAdaptorFactory()
           
 
Method Summary
 FormDataAdaptor getIt(Melati melati, MultipartFormField field)
          Get the FormDataAdaptor.
 String getUploadDir()
          Return the directory to save files in.
 String getUploadURL()
           
 void setUploadDir(String dir)
          Set the directory to save files in.
 void setUploadURL(String url)
          Set the URL to the uploadDir.
 
Methods inherited from class org.melati.servlet.FormDataAdaptorFactory
get
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

uploadDir

protected String uploadDir

uploadURL

protected String uploadURL
Constructor Detail

DefaultFileFormDataAdaptorFactory

public DefaultFileFormDataAdaptorFactory()
Method Detail

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.