@Internal public interface FileUpload
Represents a part of a MediaType.MULTIPART_FORM_DATA
request.
Modifier and Type | Method and Description |
---|---|
default void |
discard()
Discards the contents of the file.
|
Optional<MediaType> |
getContentType()
Gets the content type of this part.
|
long |
getDefinedSize()
Returns the defined content length of the part.
|
String |
getFilename()
Gets the name of this part.
|
String |
getName()
Gets the name of this part.
|
long |
getSize()
Returns the size of the part.
|
boolean |
isComplete()
Returns whether the
FileUpload has been fully uploaded or is in a partial state. |
Optional<MediaType> getContentType()
String getName()
String getFilename()
long getSize()
long getDefinedSize()
boolean isComplete()
FileUpload
has been fully uploaded or is in a partial state.default void discard()