The default implementation of {@link 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 {@link Page} typeswhich HtmlUnit already knows about for your custom content types.
The following table shows the type of {@link Page} created depending on the content type:
Content type | Type of page |
text/html | {@link HtmlPage} |
text/xml application/xml text/vnd.wap.wml *+xml | {@link XmlPage}, or an {@link XHtmlPage} if an XHTML namespace is used |
text/javascript application/x-javascript | {@link JavaScriptPage} |
text/* | {@link TextPage} |
Anything else | {@link UnexpectedPage} |
@version $Revision: 5301 $
@author
Mike Bowler
@author
Christian Sell
@author
Brad Clarke
@author Marc Guillemot
@author Ahmed Ashour
@author Daniel Gredler