| java.lang.Object com.gargoylesoftware.htmlunit.DefaultPageCreator
DefaultPageCreator | public class DefaultPageCreator implements PageCreator,Serializable(Code) | | The default implementation of PageCreator. Designed to be extended for easier
handling of new content types. Just check the content type in createPage()
and call super(createPage()) if your custom type isn't found. There are
also protected createXXXXPage() methods for creating the Page types HtmlUnit
already knows about for your custom content types.
version: $Revision: 2132 $ author: Mike Bowler author: Christian Sell author: Brad Clarke author: Marc Guillemot author: Ahmed Ashour |
DefaultPageCreator | public DefaultPageCreator()(Code) | | Create an instance.
|
createHtmlPage | protected HtmlPage createHtmlPage(WebResponse webResponse, WebWindow webWindow) throws IOException(Code) | | Create a HtmlPage for this WebResponse
Parameters: webResponse - The page's source Parameters: webWindow - The WebWindow to place the HtmlPage in The newly created HtmlPage throws: IOException - If the page could not be created |
createJavaScriptPage | protected JavaScriptPage createJavaScriptPage(WebResponse webResponse, WebWindow webWindow)(Code) | | Create a JavaScriptPage for this WebResponse
Parameters: webResponse - The page's source Parameters: webWindow - The WebWindow to place the JavaScriptPage in The newly created JavaScriptPage |
createPage | public Page createPage(WebResponse webResponse, WebWindow webWindow) throws IOException(Code) | | Create a Page object for the specified web response.
Parameters: webResponse - The response from the server Parameters: webWindow - The window that this page will be loaded into. exception: IOException - If an io problem occurs The new page object |
createTextPage | protected TextPage createTextPage(WebResponse webResponse, WebWindow webWindow)(Code) | | Create a TextPage for this WebResponse
Parameters: webResponse - The page's source Parameters: webWindow - The WebWindow to place the TextPage in The newly created TextPage |
createUnexpectedPage | protected UnexpectedPage createUnexpectedPage(WebResponse webResponse, WebWindow webWindow)(Code) | | Create an UnexpectedPage for this WebResponse
Parameters: webResponse - The page's source Parameters: webWindow - The WebWindow to place the UnexpectedPage in The newly created UnexpectedPage |
createXmlPage | protected XmlPage createXmlPage(WebResponse webResponse, WebWindow webWindow) throws IOException(Code) | | Create an XmlPage for this WebResponse
Parameters: webResponse - The page's source Parameters: webWindow - The WebWindow to place the TextPage in The newly created TextPage throws: IOException - If the page could not be created |
determinePageType | protected String determinePageType(String contentType)(Code) | | Determines the kind of page to create from the content type
Parameters: contentType - The content type to evaluate "xml", "html", "javascript", "text" or "unknown" |
|
|