LocalHostWebClient

open class LocalHostWebClient : WebClient

WebClient will automatically prefix relative URLs with localhost:${local.server.port}.

Author

Phillip Webb

Since

1.4.0

Constructors

Link copied to clipboard
constructor(environment: Environment)

Properties

Link copied to clipboard
val TARGET_BLANK: String = "_blank"
Link copied to clipboard
val TARGET_SELF: String = "_self"

Functions

Link copied to clipboard
open fun addCookie(cookieString: String, pageUrl: URL, origin: Any)
Link copied to clipboard
open fun addRequestHeader(name: String, value: String)
Link copied to clipboard
open fun addWebWindowListener(listener: WebWindowListener)
Link copied to clipboard
open fun close()
Link copied to clipboard
open fun containsWebWindow(webWindow: WebWindow): Boolean
Link copied to clipboard
open fun deregisterWebWindow(webWindow: WebWindow)
Link copied to clipboard
open fun download(requestingWindow: WebWindow, target: String, request: WebRequest, checkHash: Boolean, forceLoad: Boolean, forceAttachmentWithFilename: String, description: String)
Link copied to clipboard
open fun expandUrl(baseUrl: URL, relativeUrl: String): URL
Link copied to clipboard
open fun getAjaxController(): AjaxController
Link copied to clipboard
open fun getAlertHandler(): AlertHandler
Link copied to clipboard
open fun getAttachmentHandler(): AttachmentHandler
Link copied to clipboard
open fun getBrowserVersion(): BrowserVersion
Link copied to clipboard
open fun getCache(): Cache
Link copied to clipboard
open fun getClipboardHandler(): ClipboardHandler
Link copied to clipboard
open fun getConfirmHandler(): ConfirmHandler
Link copied to clipboard
open fun getCookieManager(): CookieManager
Link copied to clipboard
open fun getCookies(url: URL): Set<Cookie>
Link copied to clipboard
open fun getCredentialsProvider(): CredentialsProvider
Link copied to clipboard
open fun getCSS3Parser(): WebClient.PooledCSS3Parser
Link copied to clipboard
open fun getCssErrorHandler(): CSSErrorHandler
Link copied to clipboard
open fun getCurrentWindow(): WebWindow
Link copied to clipboard
open fun getExecutor(): Executor
Link copied to clipboard
open fun getFrameContentHandler(): FrameContentHandler
Link copied to clipboard
open fun getHTMLParserListener(): HTMLParserListener
Link copied to clipboard
open fun getIncorrectnessListener(): IncorrectnessListener
Link copied to clipboard
open fun getJavaScriptEngine(): AbstractJavaScriptEngine<out Any>
Link copied to clipboard
open fun getJavaScriptErrorListener(): JavaScriptErrorListener
Link copied to clipboard
Link copied to clipboard
open fun getOnbeforeunloadHandler(): OnbeforeunloadHandler
Link copied to clipboard
open fun getOptions(): WebClientOptions
Link copied to clipboard
open fun <P : Page?> getPage(webWindow: WebWindow, webRequest: WebRequest): P
open fun <P : Page?> getPage(url: String): P
Link copied to clipboard
open fun getPageCreator(): PageCreator
Link copied to clipboard
open fun getPrintHandler(): PrintHandler
Link copied to clipboard
open fun getPromptHandler(): PromptHandler
Link copied to clipboard
open fun getRefreshHandler(): RefreshHandler
Link copied to clipboard
open fun getScriptPreProcessor(): ScriptPreProcessor
Link copied to clipboard
open fun getStatusHandler(): StatusHandler
Link copied to clipboard
open fun getStorageHolder(): StorageHolder
Link copied to clipboard
open fun getTopLevelWindows(): List<TopLevelWindow>
Link copied to clipboard
open fun getWebConnection(): WebConnection
Link copied to clipboard
open fun getWebConsole(): WebConsole
Link copied to clipboard
open fun getWebStartHandler(): WebStartHandler
Link copied to clipboard
open fun getWebWindowByName(name: String): WebWindow
Link copied to clipboard
open fun getWebWindows(): List<WebWindow>
Link copied to clipboard
open fun guessContentType(file: File): String
Link copied to clipboard
open fun initialize(webWindow: WebWindow, page: Page)
Link copied to clipboard
open fun initializeEmptyWindow(webWindow: WebWindow, page: Page)
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
open fun loadHtmlCodeIntoCurrentWindow(htmlCode: String): HtmlPage
Link copied to clipboard
open fun loadWebResponse(webRequest: WebRequest): WebResponse
Link copied to clipboard
open fun loadWebResponseInto(webResponse: WebResponse, webWindow: WebWindow): Page
Link copied to clipboard
open fun loadXHtmlCodeIntoCurrentWindow(xhtmlCode: String): XHtmlPage
Link copied to clipboard
open fun openDialogWindow(url: URL, opener: WebWindow, dialogArguments: Any): DialogWindow
Link copied to clipboard
open fun openTargetWindow(opener: WebWindow, windowName: String, defaultName: String): WebWindow
Link copied to clipboard
open fun openWindow(url: URL, windowName: String): WebWindow
Link copied to clipboard
open fun printContentIfNecessary(webResponse: WebResponse)
Link copied to clipboard
open fun registerWebWindow(webWindow: WebWindow)
Link copied to clipboard
open fun removeRequestHeader(name: String)
Link copied to clipboard
open fun removeWebWindowListener(listener: WebWindowListener)
Link copied to clipboard
open fun reset()
Link copied to clipboard
open fun setAjaxController(newValue: AjaxController)
Link copied to clipboard
open fun setAlertHandler(alertHandler: AlertHandler)
Link copied to clipboard
open fun setAttachmentHandler(handler: AttachmentHandler)
Link copied to clipboard
open fun setCache(cache: Cache)
Link copied to clipboard
open fun setClipboardHandler(handler: ClipboardHandler)
Link copied to clipboard
open fun setConfirmHandler(handler: ConfirmHandler)
Link copied to clipboard
open fun setCookieManager(cookieManager: CookieManager)
Link copied to clipboard
open fun setCredentialsProvider(credentialsProvider: CredentialsProvider)
Link copied to clipboard
open fun setCssErrorHandler(cssErrorHandler: CSSErrorHandler)
Link copied to clipboard
open fun setCurrentWindow(window: WebWindow)
Link copied to clipboard
open fun setExecutor(executor: ExecutorService)
Link copied to clipboard
open fun setFrameContentHandler(handler: FrameContentHandler)
Link copied to clipboard
open fun setHTMLParserListener(listener: HTMLParserListener)
Link copied to clipboard
open fun setIncorrectnessListener(listener: IncorrectnessListener)
Link copied to clipboard
open fun setJavaScriptEngine(engine: AbstractJavaScriptEngine<out Any>)
Link copied to clipboard
open fun setJavaScriptErrorListener(javaScriptErrorListener: JavaScriptErrorListener)
Link copied to clipboard
open fun setJavaScriptTimeout(timeout: Long)
Link copied to clipboard
open fun setOnbeforeunloadHandler(onbeforeunloadHandler: OnbeforeunloadHandler)
Link copied to clipboard
open fun setPageCreator(pageCreator: PageCreator)
Link copied to clipboard
open fun setPrintHandler(handler: PrintHandler)
Link copied to clipboard
open fun setPromptHandler(handler: PromptHandler)
Link copied to clipboard
open fun setRefreshHandler(handler: RefreshHandler)
Link copied to clipboard
open fun setScriptPreProcessor(scriptPreProcessor: ScriptPreProcessor)
Link copied to clipboard
open fun setStatusHandler(statusHandler: StatusHandler)
Link copied to clipboard
open fun setWebConnection(webConnection: WebConnection)
Link copied to clipboard
open fun setWebStartHandler(handler: WebStartHandler)
open fun throwFailingHttpStatusCodeExceptionIfNecessary(webResponse: WebResponse)
Link copied to clipboard
open fun waitForBackgroundJavaScript(timeoutMillis: Long): Int