Package play.mvc
Class Http.MultipartFormData<A>
- Object
-
- play.mvc.Http.MultipartFormData<A>
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
Http.MultipartFormData.DataPart
static class
Http.MultipartFormData.FileInfo
Info about a file partstatic class
Http.MultipartFormData.FilePart<A>
A file part.static interface
Http.MultipartFormData.Part<A>
-
Constructor Summary
Constructors Constructor Description MultipartFormData()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description abstract Map<String,String[]>
asFormUrlEncoded()
Extract the data parts as Form url encoded.Http.MultipartFormData.FilePart<A>
getFile(String key)
Access a file part.abstract List<Http.MultipartFormData.FilePart<A>>
getFiles()
Retrieves all file parts.abstract boolean
isEmpty()
-
-
-
Method Detail
-
asFormUrlEncoded
public abstract Map<String,String[]> asFormUrlEncoded()
Extract the data parts as Form url encoded.- Returns:
- the data that was URL encoded
-
getFiles
public abstract List<Http.MultipartFormData.FilePart<A>> getFiles()
Retrieves all file parts.- Returns:
- the file parts
-
isEmpty
public abstract boolean isEmpty()
-
getFile
public Http.MultipartFormData.FilePart<A> getFile(String key)
Access a file part.- Parameters:
key
- name of the file part to access- Returns:
- the file part specified by key
-
-