org.paneris.jammyjoes.servlet
Class JammyjoesFileDataAdaptor
java.lang.Object
org.melati.servlet.BaseFileDataAdaptor
org.paneris.jammyjoes.servlet.JammyjoesFileDataAdaptor
- All Implemented Interfaces:
- org.melati.servlet.FormDataAdaptor
public class JammyjoesFileDataAdaptor
- extends org.melati.servlet.BaseFileDataAdaptor
The default way to save an uploaded file to disk - we tell
it what directory to save it in and the base URL to that
directory
Fields inherited from class org.melati.servlet.BaseFileDataAdaptor |
BUFSIZE, field, file, url |
Constructor Summary |
JammyjoesFileDataAdaptor(java.lang.String uploadDir,
java.lang.String uploadURL,
boolean makeUnique,
java.lang.String field)
Constructor |
JammyjoesFileDataAdaptor(java.lang.String uploadDir,
java.lang.String uploadURL,
java.lang.String field)
Constructor |
Methods inherited from class org.melati.servlet.BaseFileDataAdaptor |
getData, getFile, getSize, getURL, readData |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
uploadDir
protected java.lang.String uploadDir
uploadURL
protected java.lang.String uploadURL
makeUnique
protected boolean makeUnique
JammyjoesFileDataAdaptor
public JammyjoesFileDataAdaptor(java.lang.String uploadDir,
java.lang.String uploadURL,
java.lang.String field)
- Constructor
- Parameters:
uploadDir
- The directory to save this file inuploadURL
- A URL pointing to this directory (null if there
isn't an appropriate URL)
JammyjoesFileDataAdaptor
public JammyjoesFileDataAdaptor(java.lang.String uploadDir,
java.lang.String uploadURL,
boolean makeUnique,
java.lang.String field)
- Constructor
- Parameters:
uploadDir
- The directory to save this file inuploadURL
- A URL pointing to this directory (null if there
isn't an appropriate URL)makeUnique
- Whether we should make sure the new file has a unique
name within the uploadDir
directory
calculateLocalFile
protected java.io.File calculateLocalFile()
- Specified by:
calculateLocalFile
in class org.melati.servlet.BaseFileDataAdaptor
calculateURL
protected java.lang.String calculateURL()
- Specified by:
calculateURL
in class org.melati.servlet.BaseFileDataAdaptor
Copyright © 2001-2008 PanEris. All Rights Reserved.