A set of HTTPFileArg objects.
addEmptyHTTPFileArg
public void addEmptyHTTPFileArg()
Add a new empty file to the list. The new file will have the
empty string as its path.
addHTTPFileArg
public void addHTTPFileArg(String path)
Add a new file with the given path.
path
- the path of the file
addHTTPFileArg
public void addHTTPFileArg(String path,
String param,
String mime)
adds a new File to the HTTPFileArgs list to be uploaded with http
request.
path
- file full path.param
- http parameter name.mime
- mime type of file.
addHTTPFileArg
public void addHTTPFileArg(HTTPFileArg file)
Add a new file.
asArray
public HTTPFileArg[] asArray()
Get the current arguments as an array.
- an array of file arguments
getHTTPFileArg
public HTTPFileArg getHTTPFileArg(int row)
Get a single file.
row
- the index of the file to return.
- the file at the specified index, or null if no file
exists at that index.
getHTTPFileArgCount
public int getHTTPFileArgCount()
Get the number of files in the list.
getHTTPFileArgsCollection
public CollectionProperty getHTTPFileArgsCollection()
Get the files.
iterator
public PropertyIterator iterator()
Get a PropertyIterator of the files.
- an iteration of the files
removeAllHTTPFileArgs
public void removeAllHTTPFileArgs()
Remove all files from the list.
removeHTTPFileArg
public void removeHTTPFileArg(String filePath)
Remove the file with the specified path.
filePath
- the path of the file to remove
removeHTTPFileArg
public void removeHTTPFileArg(int row)
Remove the specified file from the list.
row
- the index of the file to remove
removeHTTPFileArg
public void removeHTTPFileArg(HTTPFileArg file)
Remove the specified file from the list.
file
- the file to remove
setHTTPFileArgs
public void setHTTPFileArgs(List files)
Set the list of files. Any existing files will be lost.
toString
public String toString()
Create a string representation of the files.
- the string representation of the files