Package org.javalite.activeweb
Class FileItem
java.lang.Object
org.javalite.activeweb.FormItem
org.javalite.activeweb.FileItem
Convenience class for use in tests.
- Author:
- Igor Polevoy
-
Constructor Summary
ConstructorDescriptionConstructor to be used in tests, field name and file name are set to File name.Constructor to be used in tests.Constructor to be used in tests. -
Method Summary
Methods inherited from class org.javalite.activeweb.FormItem
getBytes, getContentType, getFieldName, getFileName, getInputStream, getName, getStreamAsString, isFile, isFormField, saveTo
-
Constructor Details
-
FileItem
Constructor to be used in tests.- Parameters:
name
- name of a filefieldName
- name of a field.contentType
- content type for this file.content
- content in bytes.
-
FileItem
Constructor to be used in tests. Content type set to "text/plain".- Parameters:
name
- file namefieldName
- field name.content
- content to send.- Throws:
IOException
-
FileItem
Constructor to be used in tests, field name and file name are set to File name. Content type set to "text/plain".- Parameters:
file
- file to send.- Throws:
IOException
-