public class HTTPArgument extends Argument implements Serializable
ARG_NAME, DESCRIPTION, METADATA, VALUE
COMMENTS, ENABLED, GUI_CLASS, NAME, TEST_CLASS
Constructor and Description |
---|
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)
Construct a new HTTPArgument instance
|
HTTPArgument(String name,
String value,
String metaData,
boolean alreadyEncoded,
String contentEncoding)
Construct a new HTTPArgument instance
|
Modifier and Type | Method and Description |
---|---|
static void |
convertArgumentsToHTTP(Arguments args)
Converts all
Argument entries in the collection to HTTPArgument entries. |
String |
getContentType() |
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 |
setContentType(String ct) |
void |
setName(String newName)
Sets the Name attribute of the Argument object.
|
void |
setUseEquals(boolean ue) |
getDescription, getMetaData, getName, getValue, isSkippable, setDescription, setMetaData, setValue, toString
addPropertiesValues, addProperty, addProperty, addTestElement, canRemove, clear, clearTemporary, clearTestElementChildren, clone, emptyTemporary, equals, getComment, 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, setProperty, setProperty, setProperty, setProperty, setProperty, setProperty, setProperty, setProperty, setProperty, setRunningVersion, setTemporary, setThreadContext, setThreadName, traverse, traverseCollection, traverseMap, traverseProperty
finalize, getClass, notify, notifyAll, wait, wait, wait
removed
public HTTPArgument(String name, String value, String metadata)
The value is assumed to be not encoded.
name
- name of the parametervalue
- value of the parametermetadata
- the separator to use between name and valuepublic HTTPArgument(String name, String value)
The value is assumed to be not encoded.
name
- name of the parametervalue
- value of the parameterpublic HTTPArgument(String name, String value, boolean alreadyEncoded)
name
- name of the parametervalue
- value of the parameteralreadyEncoded
- true
if the value is already encoded, in which
case they are decoded before storagepublic 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)
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 encodedpublic 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()
public void setUseEquals(boolean ue)
public boolean isUseEquals()
public void setContentType(String ct)
public String getContentType()
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 valueUnsupportedEncodingException
- of the encoding is not supportedpublic String getEncodedName()
public static void convertArgumentsToHTTP(Arguments args)
Argument
entries in the collection to HTTPArgument
entries.args
- collection of Argument
and/or HTTPArgument
entriesCopyright © 1998-2019 Apache Software Foundation. All Rights Reserved.