|
Apache JMeter 1.9 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--org.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.
Field Summary |
Fields inherited from class org.apache.jmeter.config.ConfigTestElement |
PASSWORD, USERNAME |
Fields inherited from class org.apache.jmeter.testelement.AbstractTestElement |
log |
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)
! |
void |
addFile(String authFile)
add authentication data from a file |
void |
clear()
Clear the TestElement of all data. |
boolean |
expectsModification()
! |
Authorization |
get(int i)
return the record at index i |
Collection |
getAddList()
! |
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, clone, equals, getProperty, getPropertyAsBoolean, getPropertyAsDouble, getPropertyAsFloat, getPropertyAsInt, getPropertyAsLong, getPropertyAsString, isRunningVersion, logProperties, mergeIn, nextIsNull, propertyIterator, recoverRunningVersion, removeProperty, setProperty, setProperty, setRunningVersion, 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)
index
- !ToDo (Parameter description)url
- !ToDo (Parameter description)user
- !ToDo (Parameter description)pass
- !ToDo (Parameter description)public void setName(String newName)
setName
in class AbstractTestElement
newName
- !ToDo (Parameter description)public CollectionProperty getAuthObjects()
public int getColumnCount()
public String getColumnName(int column)
column
- !ToDo (Parameter description)
public Class getColumnClass(int column)
column
- !ToDo (Parameter description)
public Authorization getAuthObjectAt(int row)
row
- !ToDo (Parameter description)
public boolean isEditable()
public String getClassLabel()
public Class getGuiClass()
public Collection getAddList()
public Authorization get(int i)
i
- !ToDo (Parameter description)
public String getAuthHeaderForURL(URL url)
url
- !ToDo (Parameter description)
public String getName()
getName
in class AbstractTestElement
public void addConfigElement(ConfigElement config)
addConfigElement
in interface ConfigElement
config
- !ToDopublic void addAuth(Authorization auth)
auth
- !ToDopublic void addAuth()
public boolean expectsModification()
expectsModification
in interface ConfigElement
public void uncompile()
public void save(String authFile) throws IOException
authFile
- !ToDo (Parameter description)
IOException
- !ToDo (Exception description)public void addFile(String authFile) throws IOException
authFile
- !ToDo
IOException
- !ToDo (Exception description)public void remove(int index)
index
- !ToDo (Parameter description)public int size()
|
Apache JMeter 1.9 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |