org.jboss.jsfunit.seam
Class SeamRequestListener
java.lang.Object
org.jboss.jsfunit.seam.SeamRequestListener
- All Implemented Interfaces:
- RequestListener
public class SeamRequestListener
- extends Object
- implements RequestListener
This listener prepares the Seam environment to be compatible with JSFUnit.
After each request, the conversation scope is promoted so that it will be
available to JSFUnit tests. Before each request, conversation scope is
demoted to its normal pre-request state so that Seam applications will
function normally.
- 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. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
SeamRequestListener
public SeamRequestListener()
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.
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.
Copyright © 2007-2010 JBoss, a division of Red Hat, Inc.. All Rights Reserved.