org.jboss.jsfunit.framework
Interface InitialRequestStrategy

All Known Implementing Classes:
BasicAuthenticationStrategy, FormAuthenticationStrategy, SimpleInitialRequestStrategy

public interface InitialRequestStrategy

Implementations of this interface allow for different ways to make the initial request that starts a JSF session. Implementers of this interface will need to use only the HtmlUnit API as the initial setup does not need to be JSF-specific.

Author:
Stan Silvert

Method Summary
 Page doInitialRequest(WebClientSpec wcSpec)
          Do the initial request.
 

Method Detail

doInitialRequest

Page doInitialRequest(WebClientSpec wcSpec)
                      throws IOException
Do the initial request. This request may consist of logging in or doing some application-specific setup.

Parameters:
wcSpec - The WebClient specification.
Returns:
The Page obejct returned by HtmlUnit when the initial setup is complete.
Throws:
IOException - if HtmlUnit encounters an error.


Copyright © 2007-2008 JBoss Inc.. All Rights Reserved.