Class FileUploadUtil


  • final class FileUploadUtil
    extends java.lang.Object
    • Constructor Summary

      Constructors 
      Modifier Constructor Description
      private FileUploadUtil()  
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      (package private) static int compareTo​(FileUpload upload1, FileUpload upload2)  
      (package private) static boolean equals​(FileUpload upload1, FileUpload upload2)  
      (package private) static int hashCode​(FileUpload upload)  
      (package private) static java.lang.String validateFileNameForMultiPart​(java.lang.String filename)
      Control characters, the DEL character, double-quote, and backslash are either disallowed or strongly discouraged, depending on which multipart/form-data specification you read.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • FileUploadUtil

        private FileUploadUtil()
    • Method Detail

      • hashCode

        static int hashCode​(FileUpload upload)
      • validateFileNameForMultiPart

        static java.lang.String validateFileNameForMultiPart​(java.lang.String filename)
        Control characters, the DEL character, double-quote, and backslash are either disallowed or strongly discouraged, depending on which multipart/form-data specification you read. This method conservatively rejects all of them, and is used for outbound (encoding) filenames.
        Parameters:
        filename - The filename to check.
        Returns:
        The validated filename, unchanged.