org.apache.jmeter.protocol.http.util.accesslog
Class SessionFilter
- Cloneable, Filter, Serializable, TestCloneable, ThreadListener
public class SessionFilter
Provides Session Filtering for the AccessLog Sampler.
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 once for each thread at the end of a test
|
void | threadStarted() - Called just before the start of the thread
|
cookieManagers
protected Map cookieManagers
These objects are static across multiple threads in a test, via clone()
method.
managersInUse
protected Set managersInUse
SessionFilter
public SessionFilter()
excludeFiles
public void excludeFiles(String[] filenames)
Exclude all files in the array
- excludeFiles in interface Filter
excludePattern
public void excludePattern(String[] regexp)
Exclude any log entry that contains the following regular expression
pattern.
- excludePattern in interface Filter
filter
public String filter(String text)
In case the user wants to replace the file extension, log parsers should
call this method. This is useful for regression test plans. If a website
is migrating from one platform to another and the file extension changes,
the filter provides an easy way to do it without spending a lot of time.
- filter in interface Filter
getCookieManager
protected CookieManager getCookieManager(String ipAddr)
getIpAddress
protected String getIpAddress(String logLine)
hasExcPattern
protected boolean hasExcPattern(String text)
includeFiles
public void includeFiles(String[] filenames)
Include all files in the array.
- includeFiles in interface Filter
includePattern
public void includePattern(String[] regexp)
Include any log entry that contains the following regular expression
pattern.
- includePattern in interface Filter
isFiltered
public boolean isFiltered(String path,
TestElement sampler)
Log parser will call this method to see if a particular entry should be
filtered or not.
- isFiltered in interface Filter
reset
public void reset()
Tell the filter when the parsing has reached the end of the log file and
is about to begin again. Gives the filter a chance to adjust it's values,
if needed.
- reset in interface Filter
setReplaceExtension
public void setReplaceExtension(String oldextension,
String newextension)
- setReplaceExtension in interface Filter
oldextension
- newextension
-
threadFinished
public void threadFinished()
Called once for each thread at the end of a test
- threadFinished in interface ThreadListener
org.apache.jmeter.threads.JMeterThread.threadFinished()
threadStarted
public void threadStarted()
Called just before the start of the thread
- threadStarted in interface ThreadListener
org.apache.jmeter.threads.JMeterThread.threadStarted()
Copyright © 1998-2010 Apache Software Foundation. All Rights Reserved.