Apache JMeter
2.0.1.20050615

org.apache.jmeter.extractor
Class RegexExtractor

java.lang.Object
  extended byorg.apache.jmeter.testelement.AbstractTestElement
      extended byorg.apache.jmeter.extractor.RegexExtractor
All Implemented Interfaces:
Cloneable, PostProcessor, Serializable, TestElement

public class RegexExtractor
extends AbstractTestElement
implements PostProcessor, Serializable

Version:
$Revision: 1.15.2.1 $
See Also:
Serialized Form

Nested Class Summary
static class RegexExtractor.Test
           
 
Field Summary
static String DEFAULT
           
static String MATCH_NUMBER
           
static String REFNAME
           
static String REGEX
           
static String TEMPLATE
           
static String USEHEADERS
           
 
Fields inherited from interface org.apache.jmeter.testelement.TestElement
ENABLED, GUI_CLASS, NAME, TEST_CLASS
 
Constructor Summary
RegexExtractor()
           
 
Method Summary
 Object clone()
           
 String getDefaultValue()
           
 int getMatchNumber()
           
 String getRefName()
           
 String getRegex()
           
 String getTemplate()
           
 void process()
          Parses the response data using regular expressions and saving the results into variables for use later in the test.
 void setDefaultValue(String defaultValue)
          Sets the value of the variable if no matches are found
 void setMatchNumber(int matchNumber)
          Set which Match to use.
 void setRefName(String refName)
           
 void setRegex(String regex)
           
 void setTemplate(String template)
           
 
Methods inherited from class org.apache.jmeter.testelement.AbstractTestElement
addProperty, addTestElement, canRemove, clear, clearTemporary, emptyTemporary, equals, getName, getProperty, getPropertyAsBoolean, getPropertyAsBoolean, getPropertyAsDouble, getPropertyAsFloat, getPropertyAsInt, getPropertyAsLong, getPropertyAsString, getThreadContext, getThreadName, isRunningVersion, isTemporary, logProperties, mergeIn, nextIsNull, propertyIterator, recoverRunningVersion, removeProperty, setName, setProperty, setProperty, setRunningVersion, setTemporary, setThreadContext, setThreadName, threadFinished, threadStarted, traverse, traverseCollection, traverseMap, traverseProperty
 
Methods inherited from class java.lang.Object
finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

USEHEADERS

public static final String USEHEADERS
See Also:
Constant Field Values

REGEX

public static final String REGEX
See Also:
Constant Field Values

REFNAME

public static final String REFNAME
See Also:
Constant Field Values

MATCH_NUMBER

public static final String MATCH_NUMBER
See Also:
Constant Field Values

DEFAULT

public static final String DEFAULT
See Also:
Constant Field Values

TEMPLATE

public static final String TEMPLATE
See Also:
Constant Field Values
Constructor Detail

RegexExtractor

public RegexExtractor()
Method Detail

process

public void process()
Parses the response data using regular expressions and saving the results into variables for use later in the test.

Specified by:
process in interface PostProcessor
See Also:
PostProcessor.process()

clone

public Object clone()
Specified by:
clone in interface TestElement
Overrides:
clone in class AbstractTestElement

setRegex

public void setRegex(String regex)

getRegex

public String getRegex()

setRefName

public void setRefName(String refName)

getRefName

public String getRefName()

setMatchNumber

public void setMatchNumber(int matchNumber)
Set which Match to use. This can be any positive number, indicating the exact match to use, or 0, which is interpreted as meaning random.

Parameters:
matchNumber -

getMatchNumber

public int getMatchNumber()

setDefaultValue

public void setDefaultValue(String defaultValue)
Sets the value of the variable if no matches are found

Parameters:
defaultValue -

getDefaultValue

public String getDefaultValue()

setTemplate

public void setTemplate(String template)

getTemplate

public String getTemplate()

Apache JMeter
2.0.1.20050615

Copyright © 1998-2005 Apache Software Foundation. All Rights Reserved.