Package play.mvc
Class Http.MultipartFormData.FilePart<A>
java.lang.Object
play.mvc.Http.MultipartFormData.FilePart<A>
- All Implemented Interfaces:
Http.MultipartFormData.Part<A>
- Enclosing class:
- Http.MultipartFormData<A>
public static class Http.MultipartFormData.FilePart<A>
extends Object
implements Http.MultipartFormData.Part<A>
A file part.
-
Constructor Summary
ConstructorsConstructorDescriptionFilePart(String key, String filename, String contentType, A ref, long fileSize, String dispositionType) FilePart(String key, String filename, String contentType, A ref, long fileSize, String dispositionType, Function<A, Optional<ByteString>> refToBytes) FilePart(String key, String filename, String contentType, A ref, long fileSize, Function<A, Optional<ByteString>> refToBytes) FilePart(String key, String filename, String contentType, A ref, Function<A, Optional<ByteString>> refToBytes) -
Method Summary
-
Constructor Details
-
FilePart
-
FilePart
-
FilePart
-
FilePart
-
FilePart
-
FilePart
-
-
Method Details
-
getKey
- Returns:
- the part name
-
getFilename
- Returns:
- the file name
-
getContentType
- Returns:
- the file content type
-
getRef
The File.- Returns:
- the file
-
getDispositionType
- Returns:
- the disposition type
-
getFileSize
public long getFileSize()- Returns:
- the size of the file in bytes
-
transformRefToBytes
-
asScala
-