Package org.htmlunit
Interface PageCreator
- All Known Implementing Classes:
DefaultPageCreator
public interface PageCreator
Something that knows how to create a page object. It is also the responsibility
of the page creator to establish the relationship between the
webWindow
and the page, usually by calling WebWindow.setEnclosedPage(Page)
. This should
be done as early as possible, e.g. to allow for re-loading of pages during page parsing.-
Method Summary
Modifier and TypeMethodDescriptioncreatePage
(WebResponse webResponse, WebWindow webWindow) Create a Page object for the specified web response.org.htmlunit.html.parser.HTMLParser
INTERNAL API - SUBJECT TO CHANGE AT ANY TIME - USE AT YOUR OWN RISK.
-
Method Details
-
createPage
Create a Page object for the specified web response.- Parameters:
webResponse
- the response from the serverwebWindow
- the window that this page will be loaded into- Returns:
- the new page
- Throws:
IOException
- If an io problem occurs
-
getHtmlParser
org.htmlunit.html.parser.HTMLParser getHtmlParser()INTERNAL API - SUBJECT TO CHANGE AT ANY TIME - USE AT YOUR OWN RISK.- Returns:
- the HTMLParser in use
-