com.meterware.httpunit
Class WebConversation

java.lang.Object
  |
  +--com.meterware.httpunit.WebClient
        |
        +--com.meterware.httpunit.WebConversation

public class WebConversation
extends WebClient

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.

Author:
Russell Gold

Nested Class Summary
 
Nested classes inherited from class com.meterware.httpunit.WebClient
WebClient.HeaderDictionary
 
Constructor Summary
WebConversation()
          Creates a new web conversation.
 
Method Summary
protected  WebResponse newResponse(WebRequest request, java.lang.String frameName)
          Creates a web response object which represents the response to the specified web request.
 
Methods inherited from class com.meterware.httpunit.WebClient
addClientListener, addCookie, addWindowListener, clearContents, clearProxyServer, getClientProperties, getCookieNames, getCookieValue, getCurrentPage, getExceptionsThrownOnErrorStatus, getFrameContents, getFrameNames, getHeaderField, getHeaderFields, getMainWindow, getNextAlert, getOpenWindow, getOpenWindows, getProxyHost, getProxyPort, getResource, getResponse, getResponse, getTargetFrame, getUserAgent, popNextAlert, removeClientListener, removeWindowListener, sendRequest, setAuthorization, setDialogResponder, setExceptionsThrownOnErrorStatus, setHeaderField, setMainWindow, setProxyServer, setUserAgent, updateMainWindow, writeMessageBody
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

WebConversation

public WebConversation()
Creates a new web conversation.

Method Detail

newResponse

protected WebResponse newResponse(WebRequest request,
                                  java.lang.String frameName)
                           throws java.net.MalformedURLException,
                                  java.io.IOException
Creates a web response object which represents the response to the specified web request.

Specified by:
newResponse in class WebClient
java.net.MalformedURLException
java.io.IOException

Copyright © 2000-2003 Russell Gold. See license agreement for rights granted.