public class ReplaceWWWFormParameterValue
extends java.lang.Object
Constructor and Description |
---|
ReplaceWWWFormParameterValue(java.lang.String wwwFormData,
java.lang.String formParameterName,
java.lang.String newParameterValue,
boolean escapeNewValue)
Create a new instance.
|
Modifier and Type | Method and Description |
---|---|
int |
getNumReplaces()
The number of replaces
|
java.lang.String |
getResultWWWFormData()
Get the result form data.
|
public ReplaceWWWFormParameterValue(java.lang.String wwwFormData, java.lang.String formParameterName, java.lang.String newParameterValue, boolean escapeNewValue) throws java.io.UnsupportedEncodingException
wwwFormData
- the data of an 'application/x-www-form-urlencoded' form.formParameterName
- the (plain-text, unescaped) form parameter name for which the value is replacednewParameterValue
- the new parameter valueescapeNewValue
- if true = escape the new parameter valuejava.io.UnsupportedEncodingException
- if the query string contains a invalid escaped char sequence