|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.meterware.httpunit.WebClient
com.meterware.httpunit.WebConversation
The context for a series of HTTP requests. This class manages cookies used to maintain session context, computes relative URLs, and generally emulates the browser behavior needed to build an automated test of a web site.
| Nested Class Summary |
| Nested classes inherited from class com.meterware.httpunit.WebClient |
WebClient.HeaderDictionary |
| Constructor Summary | |
WebConversation()
Creates a new web conversation. |
|
| Method Summary | |
void |
clearProxyServer()
Clears the proxy server settings. |
int |
get_connectTimeout()
|
int |
get_readTimeout()
|
protected WebResponse |
newResponse(WebRequest request,
FrameSelector targetFrame)
Creates a web response object which represents the response to the specified web request. |
void |
set_connectTimeout(int timeout)
set the connectionTimout -1 means it is not set (the default) |
void |
set_readTimeout(int timeout)
|
void |
setProxyServer(java.lang.String proxyHost,
int proxyPort)
set the proxy server to the given proxyHost with the given proxy Port |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public WebConversation()
| Method Detail |
protected WebResponse newResponse(WebRequest request,
FrameSelector targetFrame)
throws java.net.MalformedURLException,
java.io.IOException
newResponse in class WebClientrequest - the request to which the response should be generatedtargetFrame - the frame in which the response should be stored
java.net.MalformedURLException
java.io.IOExceptionpublic void clearProxyServer()
WebClient
clearProxyServer in class WebClient
public void setProxyServer(java.lang.String proxyHost,
int proxyPort)
setProxyServer in class WebClientproxyHost - - the hostname of the proxy e.g. proxy.somedomain.orgproxyPort - - the number of the port to use e.g. 8080public int get_connectTimeout()
public void set_connectTimeout(int timeout)
timeout - the _connectTimeout to setpublic int get_readTimeout()
public void set_readTimeout(int timeout)
timeout - the _readTimeout to set -1 means it is not set (the default)
|
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 | |||||||||