|
Apache JMeter | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.jmeter.testelement.AbstractTestElement org.apache.jmeter.protocol.http.util.HTTPFileArg
public class HTTPFileArg
Class representing a file parameter for http upload. Consists of a http parameter name/file path pair with (optional) mimetype. Also provides temporary storage for the headers which are sent with files.
Field Summary |
---|
Fields inherited from interface org.apache.jmeter.testelement.TestElement |
---|
COMMENTS, ENABLED, GUI_CLASS, NAME, TEST_CLASS |
Constructor Summary | |
---|---|
HTTPFileArg()
Constructor for an empty HTTPFileArg object |
|
HTTPFileArg(HTTPFileArg file)
Copy Constructor. |
|
HTTPFileArg(JMeterProperty path,
JMeterProperty paramname,
JMeterProperty mimetype)
Constructor for the HTTPFileArg object with full information, using existing properties |
|
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. |
Method Summary | |
---|---|
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. |
Methods inherited from class java.lang.Object |
---|
finalize, getClass, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public HTTPFileArg()
public HTTPFileArg(String path)
public HTTPFileArg(String path, String paramname, String mimetype)
public HTTPFileArg(JMeterProperty path, JMeterProperty paramname, JMeterProperty mimetype)
public HTTPFileArg(HTTPFileArg file)
Method Detail |
---|
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()
toString
in class Object
public boolean isNotEmpty()
|
Apache JMeter | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |