|
Apache JMeter | ||||||||
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
public class 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.
Field Summary | |
---|---|
static int |
COL_DOMAIN
|
static int |
COL_PASSWORD
|
static int |
COL_REALM
|
static int |
COL_URL
|
static int |
COL_USERNAME
|
Fields inherited from class org.apache.jmeter.config.ConfigTestElement |
---|
PASSWORD, USERNAME |
Fields inherited from interface org.apache.jmeter.testelement.TestElement |
---|
COMMENTS, 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(java.lang.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 |
java.util.Collection |
getAddList()
|
int |
getAuthCount()
Return the number of records. |
Authorization |
getAuthForURL(java.net.URL url)
|
java.lang.String |
getAuthHeaderForURL(java.net.URL url)
|
Authorization |
getAuthObjectAt(int row)
|
CollectionProperty |
getAuthObjects()
|
java.lang.Class |
getColumnClass(int column)
|
int |
getColumnCount()
|
java.lang.String |
getColumnName(int column)
|
java.lang.Class |
getGuiClass()
|
boolean |
isEditable()
|
void |
remove(int index)
Remove an authentication record. |
void |
save(java.lang.String authFile)
Save the authentication data to a file. |
void |
set(int index,
java.lang.String url,
java.lang.String user,
java.lang.String pass,
java.lang.String domain,
java.lang.String realm)
Update an authentication record. |
void |
uncompile()
|
Methods inherited from class org.apache.jmeter.config.ConfigTestElement |
---|
addTestElement |
Methods inherited from class java.lang.Object |
---|
finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface org.apache.jmeter.config.ConfigElement |
---|
clone |
Field Detail |
---|
public static final int COL_URL
public static final int COL_USERNAME
public static final int COL_PASSWORD
public static final int COL_DOMAIN
public static final int COL_REALM
Constructor Detail |
---|
public AuthManager()
Method Detail |
---|
public void clear()
TestElement
clear
in interface TestElement
clear
in class AbstractTestElement
public void set(int index, java.lang.String url, java.lang.String user, java.lang.String pass, java.lang.String domain, java.lang.String realm)
public CollectionProperty getAuthObjects()
public int getColumnCount()
public java.lang.String getColumnName(int column)
public java.lang.Class getColumnClass(int column)
public Authorization getAuthObjectAt(int row)
public boolean isEditable()
public java.lang.Class getGuiClass()
public java.util.Collection getAddList()
public Authorization get(int i)
public java.lang.String getAuthHeaderForURL(java.net.URL url)
public Authorization getAuthForURL(java.net.URL url)
public void addConfigElement(ConfigElement config)
ConfigElement
addConfigElement
in interface ConfigElement
addConfigElement
in class ConfigTestElement
config
- the element to be added to this ConfigElementpublic void addAuth(Authorization auth)
public void addAuth()
public boolean expectsModification()
ConfigElement
expectsModification
in interface ConfigElement
expectsModification
in class ConfigTestElement
public void uncompile()
public void save(java.lang.String authFile) throws java.io.IOException
java.io.IOException
public void addFile(java.lang.String authFile) throws java.io.IOException
java.io.IOException
public void remove(int index)
public int getAuthCount()
|
Apache JMeter | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |