Package play.mvc
Class Http.MultipartFormData<A>
- Object
-
- play.mvc.Http.MultipartFormData<A>
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classHttp.MultipartFormData.DataPartstatic classHttp.MultipartFormData.FileInfoInfo about a file partstatic classHttp.MultipartFormData.FilePart<A>A file part.static interfaceHttp.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 booleanisEmpty()
-
-
-
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
-
-