|
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.config.Argument org.apache.jmeter.protocol.http.util.HTTPArgument
public class HTTPArgument
Field Summary |
---|
Fields inherited from class org.apache.jmeter.config.Argument |
---|
ARG_NAME, DESCRIPTION, METADATA, VALUE |
Fields inherited from interface org.apache.jmeter.testelement.TestElement |
---|
COMMENTS, ENABLED, GUI_CLASS, NAME, TEST_CLASS |
Constructor Summary | |
---|---|
HTTPArgument()
Constructor for the Argument object |
|
HTTPArgument(Argument arg)
|
|
HTTPArgument(String name,
String value)
Constructor for the Argument object. |
|
HTTPArgument(String name,
String value,
boolean alreadyEncoded)
|
|
HTTPArgument(String name,
String value,
boolean alreadyEncoded,
String contentEncoding)
Construct a new HTTPArgument instance; alwaysEncoded is set to true. |
|
HTTPArgument(String name,
String value,
String metadata)
Constructor for the Argument object. |
|
HTTPArgument(String name,
String value,
String metaData,
boolean alreadyEncoded)
|
|
HTTPArgument(String name,
String value,
String metaData,
boolean alreadyEncoded,
String contentEncoding)
Construct a new HTTPArgument instance |
Method Summary | |
---|---|
static void |
convertArgumentsToHTTP(Arguments args)
Converts all Argument entries in the collection to HTTPArgument entries. |
String |
getEncodedName()
|
String |
getEncodedValue()
Get the argument value encoded using UTF-8 |
String |
getEncodedValue(String contentEncoding)
Get the argument value encoded in the specified encoding |
boolean |
isAlwaysEncoded()
|
boolean |
isUseEquals()
|
void |
setAlwaysEncoded(boolean ae)
|
void |
setName(String newName)
Sets the Name attribute of the Argument object. |
void |
setUseEquals(boolean ue)
|
Methods inherited from class org.apache.jmeter.config.Argument |
---|
getDescription, getMetaData, getName, getValue, isSkippable, setDescription, setMetaData, setValue, toString |
Methods inherited from class java.lang.Object |
---|
finalize, getClass, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public HTTPArgument(String name, String value, String metadata)
public HTTPArgument(String name, String value)
public HTTPArgument(String name, String value, boolean alreadyEncoded)
public HTTPArgument(String name, String value, boolean alreadyEncoded, String contentEncoding)
name
- the name of the parametervalue
- the value of the parameteralreadyEncoded
- true if the name and value is already encoded, in which case they are decoded before storage.contentEncoding
- the encoding used for the parameter valuepublic HTTPArgument(String name, String value, String metaData, boolean alreadyEncoded)
public HTTPArgument(String name, String value, String metaData, boolean alreadyEncoded, String contentEncoding)
name
- the name of the parametervalue
- the value of the parametermetaData
- the separator to use between name and valuealreadyEncoded
- true if the name and value is already encodedcontentEncoding
- the encoding used for the parameter valuepublic HTTPArgument(Argument arg)
public HTTPArgument()
Method Detail |
---|
public void setUseEquals(boolean ue)
public boolean isUseEquals()
public void setAlwaysEncoded(boolean ae)
public boolean isAlwaysEncoded()
public void setName(String newName)
setName
in interface TestElement
setName
in class Argument
newName
- the new Name valuepublic String getEncodedValue()
public String getEncodedValue(String contentEncoding) throws UnsupportedEncodingException
contentEncoding
- the encoding to use when encoding the argument value
UnsupportedEncodingException
public String getEncodedName()
public static void convertArgumentsToHTTP(Arguments args)
Argument
entries in the collection to HTTPArgument
entries.
args
- collection of Argument
and/or HTTPArgument
entries
|
Apache JMeter | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |