org.apache.jmeter.protocol.http.control
public class AuthManager extends ConfigTestElement implements Serializable
Modifier and Type | Field and Description |
---|---|
static int |
COL_DOMAIN |
static int |
COL_PASSWORD |
static int |
COL_REALM |
static int |
COL_URL |
static int |
COL_USERNAME |
PASSWORD, USERNAME
COMMENTS, ENABLED, GUI_CLASS, NAME, TEST_CLASS
Constructor and Description |
---|
AuthManager()
Default Constructor.
|
Modifier and Type | Method and Description |
---|---|
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
|
int |
getAuthCount()
Return the number of records.
|
Authorization |
getAuthForURL(URL url) |
String |
getAuthHeaderForURL(URL url) |
Authorization |
getAuthObjectAt(int row) |
CollectionProperty |
getAuthObjects() |
Class<?> |
getColumnClass(int column) |
int |
getColumnCount() |
String |
getColumnName(int column) |
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,
String domain,
String realm)
Update an authentication record.
|
addTestElement
addProperty, canRemove, clearTemporary, clearTestElementChildren, clone, emptyTemporary, equals, getComment, getName, getProperty, getPropertyAsBoolean, getPropertyAsBoolean, getPropertyAsDouble, getPropertyAsFloat, getPropertyAsInt, getPropertyAsInt, getPropertyAsLong, getPropertyAsLong, getPropertyAsString, getPropertyAsString, getThreadContext, getThreadName, hashCode, isEnabled, isRunningVersion, isTemporary, logProperties, mergeIn, propertyIterator, recoverRunningVersion, removeProperty, setComment, setName, setProperty, setProperty, setProperty, setProperty, setProperty, setProperty, setProperty, setRunningVersion, setTemporary, setThreadContext, setThreadName, traverse, traverseCollection, traverseMap, traverseProperty
finalize, getClass, notify, notifyAll, toString, wait, wait, wait
clone
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
public void clear()
clear
in interface TestElement
clear
in class AbstractTestElement
public void set(int index, String url, String user, String pass, String domain, String realm)
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 Authorization get(int i)
public Authorization getAuthForURL(URL url)
public void addConfigElement(ConfigElement config)
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()
expectsModification
in interface ConfigElement
expectsModification
in class ConfigTestElement
public void save(String authFile) throws IOException
IOException
public void addFile(String authFile) throws IOException
IOException
public void remove(int index)
public int getAuthCount()
Copyright © 1998-2014 Apache Software Foundation. All Rights Reserved.