|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.meterware.httpunit.ClientProperties
A class which represents the properties of a web client.
Method Summary | |
java.lang.String |
getApplicationCodeName()
|
java.lang.String |
getApplicationName()
|
java.lang.String |
getApplicationVersion()
|
int |
getAvailableScreenWidth()
|
int |
getAvailHeight()
|
static ClientProperties |
getDefaultProperties()
Returns the current defaults for newly created web clients. |
java.lang.String |
getOverrideContextType()
Returns the context type (if any) to use instead of the one specified by the server. |
java.lang.String |
getPlatform()
|
java.lang.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()
|
boolean |
isSendReferer()
|
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(java.lang.String applicationCodeName)
|
void |
setApplicationID(java.lang.String applicationName,
java.lang.String applicationCodeName,
java.lang.String applicationVersion)
Specifies the ID information for a client. |
void |
setApplicationName(java.lang.String applicationName)
|
void |
setApplicationVersion(java.lang.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 |
setOverrideContextType(java.lang.String overrideContextType)
All responses to this client will use the specified content type rather than the one specified by the server. |
void |
setPlatform(java.lang.String platform)
|
void |
setSendReferer(boolean referer)
set whether Referer information should be stripped |
void |
setUserAgent(java.lang.String userAgent)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
public static ClientProperties getDefaultProperties()
public void setApplicationID(java.lang.String applicationName, java.lang.String applicationCodeName, java.lang.String applicationVersion)
public java.lang.String getApplicationCodeName()
public void setApplicationCodeName(java.lang.String applicationCodeName)
public java.lang.String getApplicationName()
public void setApplicationName(java.lang.String applicationName)
public java.lang.String getApplicationVersion()
public void setApplicationVersion(java.lang.String applicationVersion)
public java.lang.String getUserAgent()
public void setUserAgent(java.lang.String userAgent)
public java.lang.String getPlatform()
public void setPlatform(java.lang.String platform)
public void setAvailableScreenSize(int width, int height)
public int getAvailableScreenWidth()
public void setAvailableScreenWidth(int availWidth)
public int getAvailHeight()
public void setAvailHeight(int availHeight)
public boolean isAcceptCookies()
public void setAcceptCookies(boolean acceptCookies)
public boolean isAcceptGzip()
public void setAcceptGzip(boolean acceptGzip)
public boolean isAutoRedirect()
public void setAutoRedirect(boolean autoRedirect)
public boolean isAutoRefresh()
public void setAutoRefresh(boolean autoRefresh)
public boolean isIframeSupported()
public void setIframeSupported(boolean iframeSupported)
public java.lang.String getOverrideContextType()
public void setOverrideContextType(java.lang.String overrideContextType)
overrideContextType
- the new override to apply to context types.public void setDnsListener(DNSListener dnsListener)
dnsListener
- the new listener.public boolean isSendReferer()
public void setSendReferer(boolean referer)
referer
- the _sendReferer to set
|
Copyright © 2000-2008 Russell Gold. See license agreement for rights granted. | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |