|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.melati.servlet.BaseFileFormDataAdaptor
org.melati.servlet.TemporaryFileFormDataAdaptor
public class TemporaryFileFormDataAdaptor
Save uploaded files in a temporary file which is deleted when the JVM exits.
| Field Summary |
|---|
| Fields inherited from class org.melati.servlet.BaseFileFormDataAdaptor |
|---|
BUFSIZE, field, file, url |
| Constructor Summary | |
|---|---|
TemporaryFileFormDataAdaptor()
Constructor using default file name. |
|
TemporaryFileFormDataAdaptor(java.lang.String temporaryFileName)
Constructor specifying temporary file name. |
|
| Method Summary | |
|---|---|
protected java.io.File |
calculateLocalFile()
|
protected java.lang.String |
calculateURL()
Return a URL to the saved file, null if not appropriate. |
| Methods inherited from class org.melati.servlet.BaseFileFormDataAdaptor |
|---|
getData, getFile, getSize, getURL, readData |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public TemporaryFileFormDataAdaptor()
public TemporaryFileFormDataAdaptor(java.lang.String temporaryFileName)
temporaryFileName - the temporary file name to use| Method Detail |
|---|
protected java.io.File calculateLocalFile()
calculateLocalFile in class BaseFileFormDataAdaptorprotected java.lang.String calculateURL()
BaseFileFormDataAdaptor
calculateURL in class BaseFileFormDataAdaptor
|
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||