HTTPArgument
public HTTPArgument()
Constructor for the Argument object
HTTPArgument
public HTTPArgument(String name,
String value)
Constructor for the Argument object.
HTTPArgument
public HTTPArgument(String name,
String value,
String metadata)
Constructor for the Argument object.
HTTPArgument
public HTTPArgument(String name,
String value,
String metaData,
boolean alreadyEncoded)
HTTPArgument
public HTTPArgument(String name,
String value,
String metaData,
boolean alreadyEncoded,
String contentEncoding)
Construct a new HTTPArgument instance
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 value
HTTPArgument
public HTTPArgument(String name,
String value,
boolean alreadyEncoded)
HTTPArgument
public HTTPArgument(String name,
String value,
boolean alreadyEncoded,
String contentEncoding)
Construct a new HTTPArgument instance
name
- the name of the parametervalue
- the value of the parameteralreadyEncoded
- true if the name and value is already encodedcontentEncoding
- the encoding used for the parameter value
HTTPArgument
public HTTPArgument(Argument arg)
convertArgumentsToHTTP
public static void convertArgumentsToHTTP(Arguments args)
getEncodedName
public String getEncodedName()
getEncodedValue
public String getEncodedValue()
Get the argument value encoded using UTF-8
- the argument value encoded in UTF-8
getEncodedValue
public String getEncodedValue(String contentEncoding)
throws UnsupportedEncodingException
Get the argument value encoded in the specified encoding
contentEncoding
- the encoding to use when encoding the argument value
- the argument value encoded in the specified encoding
isAlwaysEncoded
public boolean isAlwaysEncoded()
isUseEquals
public boolean isUseEquals()
setAlwaysEncoded
public void setAlwaysEncoded(boolean ae)
setName
public void setName(String newName)
Sets the Name attribute of the Argument object.
- setName in interface TestElement
- setName in interface Argument
newName
- the new Name value
setUseEquals
public void setUseEquals(boolean ue)