public class HTTPFileArgs extends ConfigTestElement implements Serializable
PASSWORD, USERNAME
COMMENTS, ENABLED, GUI_CLASS, NAME, TEST_CLASS
Constructor and Description |
---|
HTTPFileArgs()
Create a new HTTPFileArgs object with no files.
|
Modifier and Type | Method and Description |
---|---|
void |
addEmptyHTTPFileArg()
Add a new empty file to the list.
|
void |
addHTTPFileArg(HTTPFileArg file)
Add a new file.
|
void |
addHTTPFileArg(String path)
Add a new file with the given path.
|
void |
addHTTPFileArg(String path,
String param,
String mime)
adds a new File to the HTTPFileArgs list to be uploaded with http
request.
|
HTTPFileArg[] |
asArray()
Get the current arguments as an array.
|
void |
clear()
Clear the files.
|
HTTPFileArg |
getHTTPFileArg(int row)
Get a single file.
|
int |
getHTTPFileArgCount()
Get the number of files in the list.
|
CollectionProperty |
getHTTPFileArgsCollection()
Get the files.
|
PropertyIterator |
iterator()
Get a PropertyIterator of the files.
|
void |
removeAllHTTPFileArgs()
Remove all files from the list.
|
void |
removeHTTPFileArg(HTTPFileArg file)
Remove the specified file from the list.
|
void |
removeHTTPFileArg(int row)
Remove the specified file from the list.
|
void |
removeHTTPFileArg(String filePath)
Remove the file with the specified path.
|
void |
setHTTPFileArgs(List<HTTPFileArg> files)
Set the list of files.
|
String |
toString()
Create a string representation of the files.
|
addConfigElement, addTestElement, expectsModification
addPropertiesValues, addProperty, addProperty, canRemove, clearTemporary, clearTestElementChildren, clone, emptyTemporary, equals, getComment, getName, getProperty, getPropertyAsBoolean, getPropertyAsBoolean, getPropertyAsDouble, getPropertyAsFloat, getPropertyAsInt, getPropertyAsInt, getPropertyAsLong, getPropertyAsLong, getPropertyAsString, getPropertyAsString, getSearchableTokens, getThreadContext, getThreadName, hashCode, isEnabled, isRunningVersion, isTemporary, logProperties, mergeIn, propertyIterator, recoverRunningVersion, removeProperty, setComment, setEnabled, setName, setProperty, setProperty, setProperty, setProperty, setProperty, setProperty, setProperty, setProperty, setProperty, setRunningVersion, setTemporary, setThreadContext, setThreadName, traverse, traverseCollection, traverseMap, traverseProperty
finalize, getClass, notify, notifyAll, wait, wait, wait
clone
removed
public HTTPFileArgs()
public CollectionProperty getHTTPFileArgsCollection()
public void clear()
clear
in interface TestElement
clear
in class AbstractTestElement
public void setHTTPFileArgs(List<HTTPFileArg> files)
files
- the new filespublic void addHTTPFileArg(String path)
path
- the path of the filepublic void addHTTPFileArg(HTTPFileArg file)
file
- the new filepublic void addHTTPFileArg(String path, String param, String mime)
path
- file full path.param
- http parameter name.mime
- mime type of file.public PropertyIterator iterator()
public HTTPFileArg[] asArray()
public String toString()
public void removeHTTPFileArg(int row)
row
- the index of the file to removepublic void removeHTTPFileArg(HTTPFileArg file)
file
- the file to removepublic void removeHTTPFileArg(String filePath)
filePath
- the path of the file to removepublic void removeAllHTTPFileArgs()
public void addEmptyHTTPFileArg()
public int getHTTPFileArgCount()
public HTTPFileArg getHTTPFileArg(int row)
row
- the index of the file to return.Copyright © 1998-2019 Apache Software Foundation. All Rights Reserved.