Package org.apache.jmeter.functions
Class EscapeHtml
java.lang.Object
org.apache.jmeter.functions.AbstractFunction
org.apache.jmeter.functions.EscapeHtml
- All Implemented Interfaces:
org.apache.jmeter.functions.Function
@AutoService(org.apache.jmeter.functions.Function.class)
public class EscapeHtml
extends org.apache.jmeter.functions.AbstractFunction
Function which escapes the characters in a String using HTML entities.
For example:
"bread" & "butter"
"bread" & "butter".
Supports all known HTML 4.0 entities. Note that the commonly used apostrophe escape character (') is not a legal entity and so is not supported).
- Since:
- 2.3.3
- See Also:
-
(Commons Lang)
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionexecute(org.apache.jmeter.samplers.SampleResult previousResult, org.apache.jmeter.samplers.Sampler currentSampler) voidsetParameters(Collection<org.apache.jmeter.engine.util.CompoundVariable> parameters) Methods inherited from class org.apache.jmeter.functions.AbstractFunction
addVariableValue, checkMinParameterCount, checkParameterCount, checkParameterCount, execute, getVariables
-
Constructor Details
-
EscapeHtml
public EscapeHtml()
-
-
Method Details
-
execute
public String execute(org.apache.jmeter.samplers.SampleResult previousResult, org.apache.jmeter.samplers.Sampler currentSampler) throws org.apache.jmeter.functions.InvalidVariableException - Specified by:
executein interfaceorg.apache.jmeter.functions.Function- Specified by:
executein classorg.apache.jmeter.functions.AbstractFunction- Throws:
org.apache.jmeter.functions.InvalidVariableException
-
setParameters
public void setParameters(Collection<org.apache.jmeter.engine.util.CompoundVariable> parameters) throws org.apache.jmeter.functions.InvalidVariableException - Specified by:
setParametersin interfaceorg.apache.jmeter.functions.Function- Specified by:
setParametersin classorg.apache.jmeter.functions.AbstractFunction- Throws:
org.apache.jmeter.functions.InvalidVariableException
-
getReferenceKey
- Specified by:
getReferenceKeyin interfaceorg.apache.jmeter.functions.Function- Specified by:
getReferenceKeyin classorg.apache.jmeter.functions.AbstractFunction
-
getArgumentDesc
-