Class FileUploadUtil
java.lang.Object
io.netty.handler.codec.http.multipart.FileUploadUtil
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription(package private) static intcompareTo(FileUpload upload1, FileUpload upload2) (package private) static booleanequals(FileUpload upload1, FileUpload upload2) (package private) static inthashCode(FileUpload upload) (package private) static StringvalidateFileNameForMultiPart(String filename) Control characters, the DEL character, double-quote, and backslash are either disallowed or strongly discouraged, depending on whichmultipart/form-dataspecification you read.
-
Constructor Details
-
FileUploadUtil
private FileUploadUtil()
-
-
Method Details
-
hashCode
-
equals
-
compareTo
-
validateFileNameForMultiPart
Control characters, the DEL character, double-quote, and backslash are either disallowed or strongly discouraged, depending on whichmultipart/form-dataspecification 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.
-