Interface SessionTempFile

All Superinterfaces:
Serializable

@PublicApi public interface SessionTempFile extends Serializable
Wrapper for a temporary file that is bound to the HTTP session.
Since:
6.0.8
  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
    Deletes the underlying File and unbinds this SessionTempFile from the current session.
    Returns the underlying File object.
    void
    Unbinds this SessionTempFile from the current session.
  • Method Details

    • getFile

      @Nonnull File getFile()
      Returns the underlying File object.
      Returns:
      a File
      Since:
      6.0.8
    • unbind

      void unbind()
      Unbinds this SessionTempFile from the current session. The underlying file will no longer be deleted when the session is destroyed.

      Note that this does not delete the underlying File

      Since:
      6.0.8
    • delete

      boolean delete()
      Deletes the underlying File and unbinds this SessionTempFile from the current session.
      Returns:
      true if the underlying file has been deleted
      Since:
      6.0.8