public class SessionFilter extends Object implements Filter, Serializable, TestCloneable, ThreadListener
| Modifier and Type | Field and Description |
|---|---|
protected Map<String,CookieManager> |
cookieManagers
These objects are static across multiple threads in a test, via clone()
method.
|
protected CookieManager |
lastUsed |
protected Set<CookieManager> |
managersInUse |
| Constructor and Description |
|---|
SessionFilter() |
| Modifier and Type | Method and Description |
|---|---|
Object |
clone() |
void |
excludeFiles(String[] filenames)
Exclude all files in the array
|
void |
excludePattern(String[] regexp)
Exclude any log entry that contains the following regular expression
pattern.
|
String |
filter(String text)
In case the user wants to replace the file extension, log parsers should
call this method.
|
protected CookieManager |
getCookieManager(String ipAddr) |
protected String |
getIpAddress(String logLine) |
protected boolean |
hasExcPattern(String text) |
void |
includeFiles(String[] filenames)
Include all files in the array.
|
void |
includePattern(String[] regexp)
Include any log entry that contains the following regular expression
pattern.
|
boolean |
isFiltered(String path,
TestElement sampler)
Log parser will call this method to see if a particular entry should be
filtered or not.
|
void |
reset()
Tell the filter when the parsing has reached the end of the log file and
is about to begin again.
|
void |
setReplaceExtension(String oldextension,
String newextension) |
void |
threadFinished()
Called for each thread after all samples have been processed.
|
void |
threadStarted()
Called for each thread before starting sampling.
|
protected Map<String,CookieManager> cookieManagers
protected Set<CookieManager> managersInUse
protected CookieManager lastUsed
protected boolean hasExcPattern(String text)
public void reset()
public Object clone()
clone in interface TestCloneableclone in class Objectpublic void excludeFiles(String[] filenames)
excludeFiles in interface Filterpublic void excludePattern(String[] regexp)
excludePattern in interface Filterpublic String filter(String text)
public void includeFiles(String[] filenames)
includeFiles in interface Filterpublic void includePattern(String[] regexp)
includePattern in interface Filterpublic boolean isFiltered(String path, TestElement sampler)
isFiltered in interface Filterprotected CookieManager getCookieManager(String ipAddr)
public void setReplaceExtension(String oldextension, String newextension)
setReplaceExtension in interface Filterpublic void threadFinished()
threadFinished in interface ThreadListenerJMeterThread.threadFinished(org.apache.jmeter.engine.event.LoopIterationListener)public void threadStarted()
threadStarted in interface ThreadListenerJMeterThread.threadStarted()Copyright © 1998-2015 Apache Software Foundation. All Rights Reserved.