Class LocalHostWebClient

java.lang.Object
org.htmlunit.WebClient
org.springframework.boot.test.web.htmlunit.LocalHostWebClient
All Implemented Interfaces:
Serializable, AutoCloseable

public class LocalHostWebClient extends org.htmlunit.WebClient
WebClient will automatically prefix relative URLs with localhost:${local.server.port}.
Since:
1.4.0
Author:
Phillip Webb
See Also:
  • Nested Class Summary

    Nested classes/interfaces inherited from class org.htmlunit.WebClient

    org.htmlunit.WebClient.PooledCSS3Parser
  • Field Summary

    Fields inherited from class org.htmlunit.WebClient

    TARGET_BLANK, TARGET_SELF
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    <P extends org.htmlunit.Page>
    P
     

    Methods inherited from class org.htmlunit.WebClient

    addCookie, addRequestHeader, addWebWindowListener, close, containsWebWindow, deregisterWebWindow, download, expandUrl, getAjaxController, getAlertHandler, getAttachmentHandler, getBrowserVersion, getCache, getClipboardHandler, getConfirmHandler, getCookieManager, getCookies, getCredentialsProvider, getCSS3Parser, getCssErrorHandler, getCurrentWindow, getExecutor, getFrameContentHandler, getHTMLParserListener, getIncorrectnessListener, getJavaScriptEngine, getJavaScriptErrorListener, getJavaScriptTimeout, getOnbeforeunloadHandler, getOptions, getPage, getPage, getPage, getPageCreator, getPrintHandler, getPromptHandler, getRefreshHandler, getScriptPreProcessor, getStatusHandler, getStorageHolder, getTopLevelWindows, getWebConnection, getWebConsole, getWebStartHandler, getWebWindowByName, getWebWindows, guessContentType, initialize, initializeEmptyWindow, isJavaScriptEnabled, isJavaScriptEngineEnabled, loadDownloadedResponses, loadHtmlCodeIntoCurrentWindow, loadWebResponse, loadWebResponseInto, loadWebResponseInto, loadXHtmlCodeIntoCurrentWindow, openDialogWindow, openTargetWindow, openWindow, openWindow, printContentIfNecessary, registerWebWindow, removeRequestHeader, removeWebWindowListener, reset, setAjaxController, setAlertHandler, setAttachmentHandler, setCache, setClipboardHandler, setConfirmHandler, setCookieManager, setCredentialsProvider, setCssErrorHandler, setCurrentWindow, setExecutor, setFrameContentHandler, setHTMLParserListener, setIncorrectnessListener, setJavaScriptEngine, setJavaScriptErrorListener, setJavaScriptTimeout, setOnbeforeunloadHandler, setPageCreator, setPrintHandler, setPromptHandler, setRefreshHandler, setScriptPreProcessor, setStatusHandler, setWebConnection, setWebStartHandler, throwFailingHttpStatusCodeExceptionIfNecessary, waitForBackgroundJavaScript, waitForBackgroundJavaScriptStartingBefore

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • LocalHostWebClient

      public LocalHostWebClient(Environment environment)
  • Method Details

    • getPage

      public <P extends org.htmlunit.Page> P getPage(String url) throws IOException, org.htmlunit.FailingHttpStatusCodeException
      Overrides:
      getPage in class org.htmlunit.WebClient
      Throws:
      IOException
      org.htmlunit.FailingHttpStatusCodeException