Serializable
, Cloneable
, Searchable
, TestElement
public class HTTPFileArg extends AbstractTestElement implements Serializable
COMMENTS, ENABLED, GUI_CLASS, NAME, TEST_CLASS
Constructor | Description |
---|---|
HTTPFileArg() |
Constructor for an empty HTTPFileArg object
|
HTTPFileArg(String path) |
Constructor for the HTTPFileArg object with given path.
|
HTTPFileArg(String path,
String paramname,
String mimetype) |
Constructor for the HTTPFileArg object with full information.
|
HTTPFileArg(HTTPFileArg file) |
Copy Constructor.
|
HTTPFileArg(JMeterProperty path,
JMeterProperty paramname,
JMeterProperty mimetype) |
Constructor for the HTTPFileArg object with full information,
using existing properties
|
Modifier and Type | Method | Description |
---|---|---|
String |
getHeader() |
Gets the saved body header for the HTTPFileArg object.
|
String |
getMimeType() |
Get the mimetype of the File.
|
String |
getParamName() |
Get the http parameter name of the File.
|
String |
getPath() |
Get the path of the File.
|
boolean |
isNotEmpty() |
Check if the entry is not empty.
|
void |
setHeader(String newHeader) |
Sets the body header for the HTTPFileArg object.
|
void |
setMimeType(String newMimeType) |
Set the mimetype of the File.
|
void |
setParamName(String newParamName) |
Set the http parameter name of the File.
|
void |
setPath(String newPath) |
Set the path of the File.
|
String |
toString() |
returns path, param name, mime type information of
HTTPFileArg object.
|
addPropertiesValues, addProperty, addProperty, addTestElement, canRemove, clear, 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
public HTTPFileArg()
public HTTPFileArg(String path)
path
- path to the file to useIllegalArgumentException
- if path
is null
public HTTPFileArg(String path, String paramname, String mimetype)
path
- path of the file to useparamname
- name of the http parameter to use for the filemimetype
- mimetype of the fileIllegalArgumentException
- if any parameter is null
public HTTPFileArg(JMeterProperty path, JMeterProperty paramname, JMeterProperty mimetype)
path
- path of the file to useparamname
- name of the http parameter to use for the filemimetype
- mimetype of the fileIllegalArgumentException
- if any parameter is null
public HTTPFileArg(HTTPFileArg file)
file
- HTTPFileArg
to get information about the path, http
parameter name and mimetype of the fileIllegalArgumentException
- if any of those retrieved information is null
public void setParamName(String newParamName)
newParamName
- the new http parameter namepublic String getParamName()
public void setMimeType(String newMimeType)
newMimeType
- the new mimetypepublic String getMimeType()
public void setPath(String newPath)
newPath
- the new pathpublic String getPath()
public void setHeader(String newHeader)
newHeader
- the new Header valuepublic String getHeader()
public String toString()
public boolean isNotEmpty()
Copyright © 1998-2018 Apache Software Foundation. All Rights Reserved.