public static class Http.MultipartFormData.FilePart<A> extends java.lang.Object implements Http.MultipartFormData.Part<A>
Constructor and Description |
---|
FilePart(java.lang.String key,
java.lang.String filename,
java.lang.String contentType,
A ref) |
FilePart(java.lang.String key,
java.lang.String filename,
java.lang.String contentType,
A ref,
long fileSize) |
FilePart(java.lang.String key,
java.lang.String filename,
java.lang.String contentType,
A ref,
long fileSize,
java.lang.String dispositionType) |
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getContentType()
The file Content-Type
|
java.lang.String |
getDispositionType()
The disposition type.
|
A |
getFile()
Deprecated.
Deprecated as of 2.7.0. Use
getRef() instead, which however (when using the default Play BodyParser )
will give you a Files.TemporaryFile instance instead of a File one.
See migration guide. |
java.lang.String |
getFilename()
The file name.
|
long |
getFileSize()
The size of the file in bytes.
|
java.lang.String |
getKey()
The part name.
|
A |
getRef()
The File.
|
public FilePart(java.lang.String key, java.lang.String filename, java.lang.String contentType, A ref)
public FilePart(java.lang.String key, java.lang.String filename, java.lang.String contentType, A ref, long fileSize)
public FilePart(java.lang.String key, java.lang.String filename, java.lang.String contentType, A ref, long fileSize, java.lang.String dispositionType)
public java.lang.String getKey()
public java.lang.String getFilename()
public java.lang.String getContentType()
@Deprecated public A getFile()
getRef()
instead, which however (when using the default Play BodyParser
)
will give you a Files.TemporaryFile
instance instead of a File
one.
See migration guide.public A getRef()
public java.lang.String getDispositionType()
public long getFileSize()