|
Apache JMeter 2.0.1.20050615 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.jmeter.testelement.AbstractTestElement
org.apache.jmeter.config.ConfigTestElement
org.apache.jmeter.protocol.http.control.AuthManager
This class provides a way to provide Authorization in jmeter requests. The format of the authorization file is: URL user pass where URL is an HTTP URL, user a username to use and pass the appropriate password.
Nested Class Summary | |
static class |
AuthManager.Test
|
Field Summary |
Fields inherited from class org.apache.jmeter.config.ConfigTestElement |
PASSWORD, USERNAME |
Fields inherited from interface org.apache.jmeter.testelement.TestElement |
ENABLED, GUI_CLASS, NAME, TEST_CLASS |
Constructor Summary | |
AuthManager()
Default Constructor. |
Method Summary | |
void |
addAuth()
|
void |
addAuth(Authorization auth)
|
void |
addConfigElement(ConfigElement config)
Add a configuration element to this one. |
void |
addFile(String authFile)
Add authentication data from a file. |
void |
clear()
Clear the TestElement of all data. |
boolean |
expectsModification()
If your config element expects to be modified in the process of a test run, and you want those modifications to carry over from sample to sample (as in a cookie manager - you want to save all cookies that get set throughout the test), then return true for this method. |
Authorization |
get(int i)
Return the record at index i |
Collection |
getAddList()
|
Authorization |
getAuthForURL(URL url)
|
String |
getAuthHeaderForURL(URL url)
|
Authorization |
getAuthObjectAt(int row)
|
CollectionProperty |
getAuthObjects()
|
String |
getClassLabel()
|
Class |
getColumnClass(int column)
|
int |
getColumnCount()
|
String |
getColumnName(int column)
|
Class |
getGuiClass()
|
String |
getName()
|
boolean |
isEditable()
|
void |
remove(int index)
Remove an authentication record. |
void |
save(String authFile)
Save the authentication data to a file. |
void |
set(int index,
String url,
String user,
String pass)
Update an authentication record. |
void |
setName(String newName)
|
int |
size()
Return the number of records. |
void |
uncompile()
|
Methods inherited from class org.apache.jmeter.config.ConfigTestElement |
addTestElement |
Methods inherited from class org.apache.jmeter.testelement.AbstractTestElement |
addProperty, canRemove, clearTemporary, clone, emptyTemporary, equals, getProperty, getPropertyAsBoolean, getPropertyAsBoolean, getPropertyAsDouble, getPropertyAsFloat, getPropertyAsInt, getPropertyAsLong, getPropertyAsString, getThreadContext, getThreadName, isRunningVersion, isTemporary, logProperties, mergeIn, nextIsNull, propertyIterator, recoverRunningVersion, removeProperty, 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 |
Methods inherited from interface org.apache.jmeter.config.ConfigElement |
clone |
Constructor Detail |
public AuthManager()
Method Detail |
public void clear()
TestElement
clear
in interface TestElement
clear
in class AbstractTestElement
public void set(int index, String url, String user, String pass)
public void setName(String newName)
setName
in class AbstractTestElement
public CollectionProperty getAuthObjects()
public int getColumnCount()
public String getColumnName(int column)
public Class getColumnClass(int column)
public Authorization getAuthObjectAt(int row)
public boolean isEditable()
public String getClassLabel()
public Class getGuiClass()
public Collection getAddList()
public Authorization get(int i)
public String getAuthHeaderForURL(URL url)
public Authorization getAuthForURL(URL url)
public String getName()
getName
in class AbstractTestElement
public void addConfigElement(ConfigElement config)
ConfigElement
addConfigElement
in interface ConfigElement
config
- the element to be added to this ConfigElementpublic void addAuth(Authorization auth)
public void addAuth()
public boolean expectsModification()
ConfigElement
expectsModification
in interface ConfigElement
public void uncompile()
public void save(String authFile) throws IOException
IOException
public void addFile(String authFile) throws IOException
IOException
public void remove(int index)
public int size()
|
Apache JMeter 2.0.1.20050615 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |