public class LocalHostWebClient
extends com.gargoylesoftware.htmlunit.WebClient
WebClient
will automatically prefix relative URLs with
localhost:${local.server.port}
.Constructor and Description |
---|
LocalHostWebClient(Environment environment) |
Modifier and Type | Method and Description |
---|---|
<P extends com.gargoylesoftware.htmlunit.Page> |
getPage(String url) |
addCookie, addRequestHeader, addWebWindowListener, close, containsWebWindow, deregisterWebWindow, download, expandUrl, getActiveXObjectMap, getAjaxController, getAlertHandler, getAppletConfirmHandler, getAttachmentHandler, getBrowserVersion, getCache, getConfirmHandler, getCookieManager, getCookies, getCredentialsProvider, getCssErrorHandler, getCurrentWindow, getHTMLParserListener, getIncorrectnessListener, getInternals, getJavaScriptEngine, getJavaScriptErrorListener, getJavaScriptTimeout, getMSXMLActiveXObjectFactory, getOnbeforeunloadHandler, getOptions, getPage, getPage, getPage, getPage, getPageCreator, getPromptHandler, getRefreshHandler, getScriptPreProcessor, getStatusHandler, getStorageHolder, getTopLevelWindows, getWebConnection, getWebConsole, getWebStartHandler, getWebWindowByName, getWebWindows, guessContentType, initialize, initialize, initializeEmptyWindow, loadDownloadedResponses, loadWebResponse, loadWebResponseInto, openDialogWindow, openTargetWindow, openWindow, openWindow, printContentIfNecessary, registerWebWindow, removeRequestHeader, removeWebWindowListener, setActiveXObjectMap, setAjaxController, setAlertHandler, setAppletConfirmHandler, setAttachmentHandler, setCache, setConfirmHandler, setCookieManager, setCredentialsProvider, setCssErrorHandler, setCurrentWindow, setHTMLParserListener, setIncorrectnessListener, setJavaScriptEngine, setJavaScriptErrorListener, setJavaScriptTimeout, setOnbeforeunloadHandler, setPageCreator, setPromptHandler, setRefreshHandler, setScriptPreProcessor, setStatusHandler, setWebConnection, setWebStartHandler, throwFailingHttpStatusCodeExceptionIfNecessary, waitForBackgroundJavaScript, waitForBackgroundJavaScriptStartingBefore
public LocalHostWebClient(Environment environment)
public <P extends com.gargoylesoftware.htmlunit.Page> P getPage(String url) throws IOException, com.gargoylesoftware.htmlunit.FailingHttpStatusCodeException
getPage
in class com.gargoylesoftware.htmlunit.WebClient
IOException
com.gargoylesoftware.htmlunit.FailingHttpStatusCodeException