类 UploadFileHeader
- java.lang.Object
-
- ai.yue.library.web.util.servlet.multipart.UploadFileHeader
-
public class UploadFileHeader extends Object
上传的文件的头部信息
源自 hutool-extra- 从以下版本开始:
- 2019年8月14日
- 作者:
- ylyue
-
-
方法概要
所有方法 实例方法 具体方法 修饰符和类型 方法 说明 StringgetContentDisposition()StringgetContentType()StringgetFileName()StringgetFormFieldName()StringgetFormFileName()StringgetMimeSubtype()StringgetMimeType()booleanisFile()
-
-
-
方法详细资料
-
isFile
public boolean isFile()
- 返回:
trueif uploaded data are correctly marked as a file. This is true if header contains string 'filename'.
-
getFormFieldName
public String getFormFieldName()
- 返回:
- form field name.
-
getFormFileName
public String getFormFileName()
- 返回:
- complete file name as specified at client side.
-
getFileName
public String getFileName()
- 返回:
- file name (base name and extension, without full path data).
-
getContentType
public String getContentType()
- 返回:
- uploaded content type. It is usually in the following form:
mime_type/mime_subtype. - 另请参阅:
getMimeType(),getMimeSubtype()
-
getMimeType
public String getMimeType()
- 返回:
- file types MIME.
-
getMimeSubtype
public String getMimeSubtype()
- 返回:
- file sub type MIME.
-
getContentDisposition
public String getContentDisposition()
- 返回:
- content disposition. Usually it is 'form-data'.
-
-