com.gargoylesoftware.htmlunit
Class DefaultPageCreator
java.lang.Object
com.gargoylesoftware.htmlunit.DefaultPageCreator
- All Implemented Interfaces:
- PageCreator, java.io.Serializable
public class DefaultPageCreator
- extends java.lang.Object
- implements PageCreator, java.io.Serializable
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: 1.3 $
- Author:
- Mike Bowler, Christian Sell, Brad Clarke, Marc Guillemot, Ahmed Ashour
- See Also:
- Serialized Form
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
DefaultPageCreator
public DefaultPageCreator()
- Create an instance.
createPage
public Page createPage(WebResponse webResponse,
WebWindow webWindow)
throws java.io.IOException
- Create a Page object for the specified web response.
- Specified by:
createPage
in interface PageCreator
- Parameters:
webResponse
- The response from the serverwebWindow
- The window that this page will be loaded into.
- Returns:
- The new page object
- Throws:
java.io.IOException
- If an io problem occurs
Copyright © 2003-2016 AppPerfect Corporation. All Rights Reserved.