类 UploadFileHeader


  • public class UploadFileHeader
    extends java.lang.Object
    上传的文件的头部信息
    源自 hutool-extra
    从以下版本开始:
    2019年8月14日
    作者:
    孙金川
    • 方法详细资料

      • isFile

        public boolean isFile()
        返回:
        true if uploaded data are correctly marked as a file. This is true if header contains string 'filename'.
      • getFormFieldName

        public java.lang.String getFormFieldName()
        返回:
        form field name.
      • getFormFileName

        public java.lang.String getFormFileName()
        返回:
        complete file name as specified at client side.
      • getFileName

        public java.lang.String getFileName()
        返回:
        file name (base name and extension, without full path data).
      • getContentType

        public java.lang.String getContentType()
        返回:
        uploaded content type. It is usually in the following form:
        mime_type/mime_subtype.
        另请参阅:
        getMimeType(), getMimeSubtype()
      • getMimeType

        public java.lang.String getMimeType()
        返回:
        file types MIME.
      • getMimeSubtype

        public java.lang.String getMimeSubtype()
        返回:
        file sub type MIME.
      • getContentDisposition

        public java.lang.String getContentDisposition()
        返回:
        content disposition. Usually it is 'form-data'.