org.jboss.jsfunit.framework
Interface RequestListener

All Known Implementing Classes:
FaceletsErrorPageDetector, HtmlUnitSnooper, JSFServerSession, SeamRequestListener

public interface RequestListener

Implementor listens for Http requests from the client side.

Since:
1.0
Author:
Stan Silvert

Method Summary
 void afterRequest(com.gargoylesoftware.htmlunit.WebResponse webResponse)
          This is called after the request is over.
 void beforeRequest(com.gargoylesoftware.htmlunit.WebRequest webRequest)
          This is called before HtmlUnit makes a request to the server.
 

Method Detail

beforeRequest

void beforeRequest(com.gargoylesoftware.htmlunit.WebRequest webRequest)
This is called before HtmlUnit makes a request to the server.

Parameters:
webRequest - The settings for the request.

afterRequest

void afterRequest(com.gargoylesoftware.htmlunit.WebResponse webResponse)
This is called after the request is over. In the case that the request throws an IOException, the webResponse will be null.

Parameters:
webResponse - The response, or null if the request threw an IOException.


Copyright © 2007-2010 JBoss, a division of Red Hat, Inc.. All Rights Reserved.