* @see org.apache.jmeter.processor.PostProcessor#process()
*/
public void process()
{
initTemplate();
JMeterContext context = getThreadContext();
if (context.getPreviousResult() == null
|| context.getPreviousResult().getResponseData() == null)
{
return;
}
log.debug("RegexExtractor processing result");
// Fetch some variables
JMeterVariables vars = context.getVariables();
String refName = getRefName();
int matchNumber = getMatchNumber();
vars.put(refName, getDefaultValue());
Perl5Matcher matcher = (Perl5Matcher) localMatcher.get();
PatternMatcherInput input =
new PatternMatcherInput(
useHeaders() ? context.getPreviousResult().getResponseHeaders()
: new String(context.getPreviousResult().getResponseData())
);
log.debug("Regex = " + getRegex());
try {
Pattern pattern =
patternCache.getPattern(getRegex(), Perl5Compiler.READ_ONLY_MASK);