com.meterware.httpunit
public class ClientProperties extends Object
Method Summary | |
---|---|
String | getApplicationCodeName() |
String | getApplicationName() |
String | getApplicationVersion() |
int | getAvailableScreenWidth() |
int | getAvailHeight() |
static ClientProperties | getDefaultProperties()
Returns the current defaults for newly created web clients. |
String | getPlatform() |
String | getUserAgent()
Returns the user agent identification. |
boolean | isAcceptCookies()
Returns true if the client should accept and transmit cookies. |
boolean | isAcceptGzip()
Returns true if the client will accept GZIP encoding of responses. |
boolean | isAutoRedirect()
Returns true if the client should automatically follow page redirect requests (status 3xx).
|
boolean | isAutoRefresh()
Returns true if the client should automatically follow page refresh requests.
|
boolean | isIframeSupported() |
void | setAcceptCookies(boolean acceptCookies)
Specifies whether the client should accept and send cookies. |
void | setAcceptGzip(boolean acceptGzip)
Specifies whether the client will accept GZIP encoded responses. |
void | setApplicationCodeName(String applicationCodeName) |
void | setApplicationID(String applicationName, String applicationCodeName, String applicationVersion)
Specifies the ID information for a client. |
void | setApplicationName(String applicationName) |
void | setApplicationVersion(String applicationVersion) |
void | setAutoRedirect(boolean autoRedirect)
Determines whether the client should automatically follow page redirect requests (status 3xx).
|
void | setAutoRefresh(boolean autoRefresh)
Specifies whether the client should automatically follow page refresh requests.
|
void | setAvailableScreenSize(int width, int height)
A shortcut for setting both availableScreenWidth and availableScreenHeight at one time. |
void | setAvailableScreenWidth(int availWidth) |
void | setAvailHeight(int availHeight) |
void | setDnsListener(DNSListener dnsListener)
Specifies a listener for DNS requests from the client. |
void | setIframeSupported(boolean iframeSupported) |
void | setPlatform(String platform) |
void | setUserAgent(String userAgent) |