org.jboss.jsfunit.framework
Class FaceletsErrorPageDetector

java.lang.Object
  extended by org.jboss.jsfunit.framework.FaceletsErrorPageDetector
All Implemented Interfaces:
RequestListener

public class FaceletsErrorPageDetector
extends Object
implements RequestListener

This class checks every response to see if it was the Facelets Error page. If so, it throws a FaceletsErrorPageException.

Since:
1.0
Author:
Stan Silvert

Constructor Summary
FaceletsErrorPageDetector()
           
 
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.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FaceletsErrorPageDetector

public FaceletsErrorPageDetector()
Method Detail

afterRequest

public void afterRequest(com.gargoylesoftware.htmlunit.WebResponse webResponse)
Description copied from interface: RequestListener
This is called after the request is over. In the case that the request throws an IOException, the webResponse will be null.

Specified by:
afterRequest in interface RequestListener
Parameters:
webResponse - The response, or null if the request threw an IOException.

beforeRequest

public void beforeRequest(com.gargoylesoftware.htmlunit.WebRequest webRequest)
Description copied from interface: RequestListener
This is called before HtmlUnit makes a request to the server.

Specified by:
beforeRequest in interface RequestListener
Parameters:
webRequest - The settings for the request.


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