public class DefaultPageCreator extends Object implements PageCreator, Serializable
Constructor and Description |
---|
DefaultPageCreator()
Create an instance.
|
Modifier and Type | Method and Description |
---|---|
protected HtmlPage |
createHtmlPage(WebResponse webResponse,
WebWindow webWindow)
Create a HtmlPage for this WebResponse
|
protected JavaScriptPage |
createJavaScriptPage(WebResponse webResponse,
WebWindow webWindow)
Create a JavaScriptPage for this WebResponse
|
Page |
createPage(WebResponse webResponse,
WebWindow webWindow)
Create a Page object for the specified web response.
|
protected TextPage |
createTextPage(WebResponse webResponse,
WebWindow webWindow)
Create a TextPage for this WebResponse
|
protected UnexpectedPage |
createUnexpectedPage(WebResponse webResponse,
WebWindow webWindow)
Create an UnexpectedPage for this WebResponse
|
protected XmlPage |
createXmlPage(WebResponse webResponse,
WebWindow webWindow)
Create an XmlPage for this WebResponse
|
protected String |
determinePageType(String contentType)
Determines the kind of page to create from the content type
|
public Page createPage(WebResponse webResponse, WebWindow webWindow) throws IOException
createPage
in interface PageCreator
webResponse
- The response from the serverwebWindow
- The window that this page will be loaded into.IOException
- If an io problem occursprotected HtmlPage createHtmlPage(WebResponse webResponse, WebWindow webWindow) throws IOException
webResponse
- The page's sourcewebWindow
- The WebWindow to place the HtmlPage inIOException
- If the page could not be createdprotected JavaScriptPage createJavaScriptPage(WebResponse webResponse, WebWindow webWindow)
webResponse
- The page's sourcewebWindow
- The WebWindow to place the JavaScriptPage inprotected TextPage createTextPage(WebResponse webResponse, WebWindow webWindow)
webResponse
- The page's sourcewebWindow
- The WebWindow to place the TextPage inprotected UnexpectedPage createUnexpectedPage(WebResponse webResponse, WebWindow webWindow)
webResponse
- The page's sourcewebWindow
- The WebWindow to place the UnexpectedPage inprotected XmlPage createXmlPage(WebResponse webResponse, WebWindow webWindow) throws IOException
webResponse
- The page's sourcewebWindow
- The WebWindow to place the TextPage inIOException
- If the page could not be createdCopyright © 2002-2012 Gargoyle Software Inc.. All Rights Reserved.