|
JSF Test Framework: HtmlUnit 1.1.2 | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.gargoylesoftware.htmlunit.WebClient
org.jboss.test.faces.htmlunit.LocalWebClient
public class LocalWebClient
Modified version of the HtmlUnit WebClient. This subclass uses LocalWebConnection by default,
to perform requests to the local saging server StagingServer instead of real network request.
It is also setup synchonous ajax controller WebClient.setAjaxController(com.gargoylesoftware.htmlunit.AjaxController),
to avoid thread syncronisation problem.
| Field Summary |
|---|
| Fields inherited from class com.gargoylesoftware.htmlunit.WebClient |
|---|
URL_ABOUT_BLANK |
| Constructor Summary | |
|---|---|
LocalWebClient(StagingServer server)
Create WebConnection instance for the given StagingServer |
|
LocalWebClient(StagingServer server,
com.gargoylesoftware.htmlunit.BrowserVersion browserVersion)
Create WebConnection instance for the given StagingServer and browser version. |
|
| Method Summary | |
|---|---|
com.gargoylesoftware.htmlunit.WebConnection |
getWebConnection()
Overwride default webConnection. |
void |
setWebConnection(com.gargoylesoftware.htmlunit.WebConnection webConnection)
|
| Methods inherited from class com.gargoylesoftware.htmlunit.WebClient |
|---|
addRequestHeader, addWebWindowListener, closeAllWindows, deregisterWebWindow, download, expandUrl, getActiveXObjectMap, getAjaxController, getAlertHandler, getAttachmentHandler, getBrowserVersion, getCache, getConfirmHandler, getCookieManager, getCredentialsProvider, getCssErrorHandler, getCurrentWindow, getHomePage, getHTMLParserListener, getIncorrectnessListener, getJavaScriptEngine, getJavaScriptTimeout, getOnbeforeunloadHandler, getPage, getPage, getPage, getPage, getPage, getPageCreator, getPrintContentOnFailingStatusCode, getPromptHandler, getProxyConfig, getRefreshHandler, getScriptPreProcessor, getStatusHandler, getTimeout, getTopLevelWindows, getWebWindowByName, getWebWindows, guessContentType, initialize, initialize, initializeEmptyWindow, isActiveXNative, isAppletEnabled, isCssEnabled, isJavaScriptEnabled, isPopupBlockerEnabled, isRedirectEnabled, isThrowExceptionOnFailingStatusCode, isThrowExceptionOnScriptError, loadDownloadedResponses, loadWebResponse, loadWebResponseInto, openDialogWindow, openWindow, openWindow, printContentIfNecessary, registerWebWindow, removeRequestHeader, removeWebWindowListener, setActiveXNative, setActiveXObjectMap, setAjaxController, setAlertHandler, setAppletEnabled, setAttachmentHandler, setCache, setConfirmHandler, setCookieManager, setCredentialsProvider, setCssEnabled, setCssErrorHandler, setCurrentWindow, setHomePage, setHTMLParserListener, setIncorrectnessListener, setJavaScriptEnabled, setJavaScriptEngine, setJavaScriptTimeout, setOnbeforeunloadHandler, setPageCreator, setPopupBlockerEnabled, setPrintContentOnFailingStatusCode, setPromptHandler, setProxyConfig, setRedirectEnabled, setRefreshHandler, setScriptPreProcessor, setStatusHandler, setThrowExceptionOnFailingStatusCode, setThrowExceptionOnScriptError, setTimeout, setUseInsecureSSL, throwFailingHttpStatusCodeExceptionIfNecessary, waitForBackgroundJavaScript, waitForBackgroundJavaScriptStartingBefore |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public LocalWebClient(StagingServer server)
StagingServer
server - test server instance.
public LocalWebClient(StagingServer server,
com.gargoylesoftware.htmlunit.BrowserVersion browserVersion)
StagingServer and browser version.
server - test server instance.browserVersion - | Method Detail |
|---|
public com.gargoylesoftware.htmlunit.WebConnection getWebConnection()
getWebConnection in class com.gargoylesoftware.htmlunit.WebClientpublic void setWebConnection(com.gargoylesoftware.htmlunit.WebConnection webConnection)
setWebConnection in class com.gargoylesoftware.htmlunit.WebClientwebConnection - the webConnection to set
|
JSF Test Framework: HtmlUnit 1.1.2 | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||