Package play.mvc
Class Http.MultipartFormData.FilePart<A>
- 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
Constructors Constructor Description FilePart(String key, String filename, String contentType, A ref)
FilePart(String key, String filename, String contentType, A ref, long fileSize)
FilePart(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
All Methods Instance Methods Concrete Methods Modifier and Type Method Description play.api.mvc.MultipartFormData.FilePart<A>
asScala()
String
getContentType()
String
getDispositionType()
String
getFilename()
long
getFileSize()
String
getKey()
A
getRef()
The File.ByteString
transformRefToBytes()
-
-
-
Constructor Detail
-
FilePart
public FilePart(String key, String filename, String contentType, A ref, Function<A,Optional<ByteString>> refToBytes)
-
FilePart
public FilePart(String key, String filename, String contentType, A ref, long fileSize, Function<A,Optional<ByteString>> refToBytes)
-
FilePart
public FilePart(String key, String filename, String contentType, A ref, long fileSize, String dispositionType)
-
-
Method Detail
-
getKey
public String getKey()
- Returns:
- the part name
-
getFilename
public String getFilename()
- Returns:
- the file name
-
getContentType
public String getContentType()
- Returns:
- the file content type
-
getRef
public A getRef()
The File.- Returns:
- the file
-
getDispositionType
public String getDispositionType()
- Returns:
- the disposition type
-
getFileSize
public long getFileSize()
- Returns:
- the size of the file in bytes
-
transformRefToBytes
public ByteString transformRefToBytes()
-
asScala
public play.api.mvc.MultipartFormData.FilePart<A> asScala()
-
-