org.melati.servlet
Class PoemFileFormDataAdaptorFactory

Package class diagram package PoemFileFormDataAdaptorFactory
java.lang.Object
  extended by org.melati.servlet.FormDataAdaptorFactory
      extended by org.melati.servlet.DefaultFileFormDataAdaptorFactory
          extended by org.melati.servlet.PoemFileFormDataAdaptorFactory

public class PoemFileFormDataAdaptorFactory
extends DefaultFileFormDataAdaptorFactory

Save the uploaded file to disk in a particular directory which has a particular URL. We get these values from the values of UploadDir and UploadURL in the Setting table of the current Database.


Field Summary
 
Fields inherited from class org.melati.servlet.DefaultFileFormDataAdaptorFactory
uploadDir, uploadURL
 
Constructor Summary
PoemFileFormDataAdaptorFactory()
           
 
Method Summary
 FormDataAdaptor getIt(Melati melati, MultipartFormField field)
          Get the defaulted parameters for the adaptor from the database and create it.
 
Methods inherited from class org.melati.servlet.DefaultFileFormDataAdaptorFactory
getUploadDir, getUploadURL, setUploadDir, setUploadURL
 
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
 

Constructor Detail

PoemFileFormDataAdaptorFactory

public PoemFileFormDataAdaptorFactory()
Method Detail

getIt

public FormDataAdaptor getIt(Melati melati,
                             MultipartFormField field)
Get the defaulted parameters for the adaptor from the database and create it.

Overrides:
getIt in class DefaultFileFormDataAdaptorFactory
Parameters:
melati - the Melati
field - a MultipartFormField
Returns:
a FormDataAdaptor


Copyright © 2000-2010 PanEris. All Rights Reserved.