Class BaseUrlWebClient

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

public class BaseUrlWebClient extends org.htmlunit.WebClient
HTML Unit WebClient that will automatically prefix relative URLs with a provided BaseUrl.
Since:
4.0.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
    BaseUrlWebClient(@Nullable BaseUrl baseUrl)
     
  • Method Summary

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

    Methods inherited from class org.htmlunit.WebClient

    addCookie, addRequestHeader, addWebWindowListener, buildWebSocketAdapter, 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, setWebSocketAdapter, setWebStartHandler, throwFailingHttpStatusCodeExceptionIfNecessary, waitForBackgroundJavaScript, waitForBackgroundJavaScriptStartingBefore, waitForBackgroundJavaScriptStartingBefore

    Methods inherited from class java.lang.Object

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

    • BaseUrlWebClient

      public BaseUrlWebClient(@Nullable BaseUrl baseUrl)
  • 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