pulse - the web application framework Get pulse at SourceForge.net. Fast, secure and Free Open Source software downloads Ohloh project report for pulse-java

org.torweg.pulse.service.request
Class TemporaryFile

java.lang.Object
  extended by org.torweg.pulse.service.request.TemporaryFile
All Implemented Interfaces:
java.io.Serializable, java.util.EventListener, javax.servlet.http.HttpSessionBindingListener, ITemporaryFile, SessionBindingListener
Direct Known Subclasses:
UploadedFile

public class TemporaryFile
extends java.lang.Object
implements ITemporaryFile, javax.servlet.http.HttpSessionBindingListener

Version:
$Revision$
Author:
Thomas Weber
See Also:
Serialized Form

Constructor Summary
TemporaryFile()
           
 
Method Summary
 java.io.File getFile()
          give access to the temporary file representing the uploaded file.
protected  void setFile(java.io.File f)
          sets the file for the TemporaryFile.
 void valueBound()
          does nothing.
 void valueBound(javax.servlet.http.HttpSessionBindingEvent e)
          does nothing.
 void valueUnbound()
          tries to delete the TemporaryFile.
 void valueUnbound(javax.servlet.http.HttpSessionBindingEvent e)
          tries to delete the TemporaryFile.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TemporaryFile

public TemporaryFile()
Method Detail

setFile

protected final void setFile(java.io.File f)
sets the file for the TemporaryFile.

Parameters:
f - the file
Throws:
java.lang.IllegalStateException - if a file is already present

getFile

public final java.io.File getFile()
give access to the temporary file representing the uploaded file.

Returns:
the file
See Also:
IUploadedFile.getFile()

valueBound

public void valueBound()
does nothing.

Specified by:
valueBound in interface SessionBindingListener
See Also:
SessionBindingListener.valueBound()

valueUnbound

public void valueUnbound()
tries to delete the TemporaryFile.

Specified by:
valueUnbound in interface SessionBindingListener
See Also:
SessionBindingListener.valueUnbound()

valueBound

public void valueBound(javax.servlet.http.HttpSessionBindingEvent e)
does nothing.

Specified by:
valueBound in interface javax.servlet.http.HttpSessionBindingListener
Parameters:
e - the event
See Also:
HttpSessionBindingListener.valueBound(javax.servlet.http.HttpSessionBindingEvent)

valueUnbound

public void valueUnbound(javax.servlet.http.HttpSessionBindingEvent e)
tries to delete the TemporaryFile.

Specified by:
valueUnbound in interface javax.servlet.http.HttpSessionBindingListener
Parameters:
e - the event
See Also:
javax.servlet.http.HttpSessionBindingListener#valueUnbound(javax.servlet .http.HttpSessionBindingEvent)