Interface FormDataPart
public interface FormDataPart
A form data part of a
MultipartForm.-
Method Summary
-
Method Details
-
name
String name()- Returns:
- the name
-
isAttribute
boolean isAttribute()- Returns:
truewhen this part is an attribute
-
isFileUpload
boolean isFileUpload()- Returns:
truewhen this part is a file upload
-
value
String value()- Returns:
- the value when the part for a form attribute otherwise
null
-
filename
String filename()- Returns:
- the filename when this part is a file upload otherwise
null
-
pathname
String pathname()- Returns:
- the pathname when this part is a file upload created with a pathname otherwise
null
-
content
Buffer content()- Returns:
- the content when this part is a file upload created with a buffer otherwise
null
-
mediaType
String mediaType()- Returns:
- the media type when this part is a file upload otherwise
null
-
isText
Boolean isText()- Returns:
- whether the file upload is text or binary when this part is a file upload otherwise
null
-