org.openware.loadsim.output
Interface IContentHandler

All Superinterfaces:
java.io.Serializable
All Known Implementing Classes:
DumpHeadersHandler, DumpLinksHandler, PrintFormsHandler, PrintLinksHandler, SaveHtmlHandler

public interface IContentHandler
extends java.io.Serializable

Interface to implement to handle the content returned from the webserver under test. The SampleResult that is passed in contains the contents of the last page and the next link. Providing this information makes it possible to verify that the contents are what are expected as well as making it possible to set querysting/form data dynamically based upon what is contained in the page.

The set of content handlers defined in the simulation configuration (thd loadsim.dtd) are cloned for each virtual user. This creates a set of IContentHandler instances per virtual host. Each instance is maintained for the duration of the simulation.

Author:
Vincent Sheffer
See Also:
SampleResult

Method Summary
 void handlePage(SampleResult sr)
          Handle the contents of the last page downloaded.
 

Method Detail

handlePage

public void handlePage(SampleResult sr)
                throws LinkException
Handle the contents of the last page downloaded.


Copyright © 2000, 2001 Openware, Spin Software. All Rights Reserved.