|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.jboss.jsfunit.framework.JSFUnitWebConnection
public class JSFUnitWebConnection
The JSFUnitWebConnection wraps the HtmlUnit WebConnection. It allows listeners to register for events before and after any HTTP request on the client side.
| Constructor Summary | |
|---|---|
JSFUnitWebConnection(com.gargoylesoftware.htmlunit.WebConnection wrappedConnection)
Create a new JSFUnitWebConnection |
|
| Method Summary | |
|---|---|
void |
addListener(RequestListener listener)
Add a RequestListener to be notified whenever an HTTP request is made to the server. |
com.gargoylesoftware.htmlunit.WebResponse |
getResponse(com.gargoylesoftware.htmlunit.WebRequest webRequest)
Called by HtmlUnit whenever a request is made to the server. |
void |
removeListener(RequestListener listener)
Remove a RequestListener. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public JSFUnitWebConnection(com.gargoylesoftware.htmlunit.WebConnection wrappedConnection)
wrappedConnection - The wrappedConnection (normally obtained from
the HtmlUnit WebClient| Method Detail |
|---|
public com.gargoylesoftware.htmlunit.WebResponse getResponse(com.gargoylesoftware.htmlunit.WebRequest webRequest)
throws IOException
getResponse in interface com.gargoylesoftware.htmlunit.WebConnectionwebRequest - The WebRequest
IOExceptionpublic void addListener(RequestListener listener)
listener - The listener to registerpublic void removeListener(RequestListener listener)
listener - The listener to unregister
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||