public class HTTPFileArgs
extends org.apache.jmeter.config.ConfigTestElement
implements java.io.Serializable
| 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(java.lang.String path)
Add a new file with the given path.
|
void |
addHTTPFileArg(java.lang.String path,
java.lang.String param,
java.lang.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.
|
org.apache.jmeter.testelement.property.CollectionProperty |
getHTTPFileArgsCollection()
Get the files.
|
org.apache.jmeter.testelement.property.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(java.lang.String filePath)
Remove the file with the specified path.
|
void |
setHTTPFileArgs(java.util.List<HTTPFileArg> files)
Set the list of files.
|
java.lang.String |
toString()
Create a string representation of the files.
|
addConfigElement, addTestElement, expectsModificationaddPropertiesValues, 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, traversePropertypublic HTTPFileArgs()
public org.apache.jmeter.testelement.property.CollectionProperty getHTTPFileArgsCollection()
public void clear()
clear in interface org.apache.jmeter.testelement.TestElementclear in class org.apache.jmeter.testelement.AbstractTestElementpublic void setHTTPFileArgs(java.util.List<HTTPFileArg> files)
files - the new filespublic void addHTTPFileArg(java.lang.String path)
path - the path of the filepublic void addHTTPFileArg(HTTPFileArg file)
file - the new filepublic void addHTTPFileArg(java.lang.String path,
java.lang.String param,
java.lang.String mime)
path - file full path.param - http parameter name.mime - mime type of file.public org.apache.jmeter.testelement.property.PropertyIterator iterator()
public HTTPFileArg[] asArray()
public java.lang.String toString()
toString in class java.lang.Objectpublic void removeHTTPFileArg(int row)
row - the index of the file to removepublic void removeHTTPFileArg(HTTPFileArg file)
file - the file to removepublic void removeHTTPFileArg(java.lang.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-2018 Apache Software Foundation. All Rights Reserved.