Class WSUploadPart

java.lang.Object
com.iizix.comm.WSUploadPart

public class WSUploadPart extends Object
Class holding the part that is about a file to be uploaded in the web server.
Author:
Christopher Mindus
  • Field Details

    • fileName

      public final String fileName
      The file name parsed from the multi-part.
    • name

      public final String name
      The part name.
    • size

      public final long size
      The part size in bytes.
  • Constructor Details

    • WSUploadPart

      public WSUploadPart(String fileName, String name, long size)
      Constructor.
      Parameters:
      fileName - The file name.
      name - The part name.
      size - The part size in bytes.
  • Method Details

    • onWritten

      public void onWritten(File file)
      Called when the file has been written to disk.
      Parameters:
      file - The file written.
      Throws:
      IllegalStateException - If already called.
      NullPointerException - If file is null.
    • getFile

      public File getFile()
      Gets the file written on disk.
      Returns:
      The file, or null if not yet written.
    • toString

      public String toString()
      Outputs to string.
      Overrides:
      toString in class Object