Class HTTPArgument
java.lang.Object
org.apache.jmeter.testelement.AbstractTestElement
org.apache.jmeter.config.Argument
org.apache.jmeter.protocol.http.util.HTTPArgument
- All Implemented Interfaces:
- Serializable,- Cloneable,- Searchable,- org.apache.jmeter.testelement.TestElement
- See Also:
- 
Nested Class SummaryNested classes/interfaces inherited from interface org.apache.jmeter.testelement.TestElementorg.apache.jmeter.testelement.TestElement.Companion
- 
Field SummaryFields inherited from class org.apache.jmeter.config.ArgumentARG_NAME, DESCRIPTION, METADATA, VALUEFields inherited from interface org.apache.jmeter.testelement.TestElementCOMMENTS, Companion, ENABLED, GUI_CLASS, NAME, TEST_CLASS
- 
Constructor SummaryConstructorsConstructorDescriptionConstructor for the Argument objectHTTPArgument(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) Construct a new HTTPArgument instanceHTTPArgument(String name, String value, String metaData, boolean alreadyEncoded, String contentEncoding) Construct a new HTTPArgument instanceHTTPArgument(Argument arg) 
- 
Method SummaryModifier and TypeMethodDescriptionstatic voidConverts allArgumententries in the collection toHTTPArgumententries.Get the argument value encoded using UTF-8getEncodedValue(String contentEncoding) Get the argument value encoded in the specified encodingorg.apache.jmeter.testelement.schema.PropertiesAccessor<? extends HTTPArgument,? extends org.apache.jmeter.protocol.http.util.HTTPArgumentSchema> getProps()org.apache.jmeter.protocol.http.util.HTTPArgumentSchemabooleanbooleanvoidsetAlwaysEncoded(boolean ae) voidsetContentType(String ct) voidSets the Name attribute of the Argument object.voidsetUseEquals(boolean ue) Methods inherited from class org.apache.jmeter.config.ArgumentgetDescription, getMetaData, getName, getValue, isSkippable, setDescription, setMetaData, setValue, toStringMethods inherited from class org.apache.jmeter.testelement.AbstractTestElementaddPropertiesValues, addProperty, addProperty, addTestElement, canRemove, clear, clearTemporary, clearTestElementChildren, clone, emptyTemporary, equals, getComment, getProperty, getPropertyAsBoolean, getPropertyAsBoolean, getPropertyAsDouble, getPropertyAsFloat, getPropertyAsInt, getPropertyAsInt, getPropertyAsLong, getPropertyAsLong, getPropertyAsString, getPropertyAsString, getPropertyOrNull, getSearchableTokens, getThreadContext, getThreadName, hashCode, isEnabled, isRunningVersion, isTemporary, logProperties, mergeIn, propertyIterator, recoverRunningVersion, removeProperty, setComment, setEnabled, setProperty, setProperty, setProperty, setProperty, setProperty, setProperty, setProperty, setProperty, setProperty, setRunningVersion, setTemporary, setThreadContext, setThreadName, traverse, traverseCollection, traverseMap, traversePropertyMethods inherited from class java.lang.Objectfinalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface org.apache.jmeter.testelement.TestElementget, get, get, get, get, get, get, get, get, getOrCreate, getOrCreate, getOrNull, getOrNull, getOrNull, getPropertyOrNull, getString, removed, removeProperty, set, set, set, set, set, set, set, set, set
- 
Constructor Details- 
HTTPArgumentConstructor for the Argument object.The value is assumed to be not encoded. - Parameters:
- name- name of the parameter
- value- value of the parameter
- metadata- the separator to use between name and value
 
- 
HTTPArgumentConstructor for the Argument object.The value is assumed to be not encoded. - Parameters:
- name- name of the parameter
- value- value of the parameter
 
- 
HTTPArgument- Parameters:
- name- name of the parameter
- value- value of the parameter
- alreadyEncoded-- trueif the value is already encoded, in which case they are decoded before storage
 
- 
HTTPArgumentConstruct a new HTTPArgument instance; alwaysEncoded is set to true.- Parameters:
- name- the name of the parameter
- value- the value of the parameter
- alreadyEncoded- true if the name and value is already encoded, in which case they are decoded before storage.
- contentEncoding- the encoding used for the parameter value
 
- 
HTTPArgumentConstruct a new HTTPArgument instance- Parameters:
- name- the name of the parameter
- value- the value of the parameter
- metaData- the separator to use between name and value
- alreadyEncoded- true if the name and value is already encoded
 
- 
HTTPArgumentpublic HTTPArgument(String name, String value, String metaData, boolean alreadyEncoded, String contentEncoding) Construct a new HTTPArgument instance- Parameters:
- name- the name of the parameter
- value- the value of the parameter
- metaData- the separator to use between name and value
- alreadyEncoded- true if the name and value is already encoded
- contentEncoding- the encoding used for the parameter value
 
- 
HTTPArgument
- 
HTTPArgumentpublic HTTPArgument()Constructor for the Argument object
 
- 
- 
Method Details- 
getSchemapublic org.apache.jmeter.protocol.http.util.HTTPArgumentSchema getSchema()
- 
getPropspublic org.apache.jmeter.testelement.schema.PropertiesAccessor<? extends HTTPArgument,? extends org.apache.jmeter.protocol.http.util.HTTPArgumentSchema> getProps()
- 
setUseEqualspublic void setUseEquals(boolean ue) 
- 
isUseEqualspublic boolean isUseEquals()
- 
setContentType
- 
getContentType
- 
setAlwaysEncodedpublic void setAlwaysEncoded(boolean ae) 
- 
isAlwaysEncodedpublic boolean isAlwaysEncoded()
- 
setNameSets the Name attribute of the Argument object.
- 
getEncodedValueGet the argument value encoded using UTF-8- Returns:
- the argument value encoded in UTF-8
 
- 
getEncodedValueGet the argument value encoded in the specified encoding- Parameters:
- contentEncoding- the encoding to use when encoding the argument value
- Returns:
- the argument value encoded in the specified encoding
- Throws:
- UnsupportedEncodingException- of the encoding is not supported
 
- 
getEncodedName
- 
convertArgumentsToHTTPConverts allArgumententries in the collection toHTTPArgumententries.- Parameters:
- args- collection of- Argumentand/or- HTTPArgumententries
 
 
-