public class UnexpectedPage extends Object implements Page
| Constructor and Description |
|---|
UnexpectedPage(WebResponse webResponse,
WebWindow enclosingWindow)
Creates an instance.
|
| Modifier and Type | Method and Description |
|---|---|
void |
cleanUp()
Cleans up this page.
|
WebWindow |
getEnclosingWindow()
Returns the window that this page is sitting inside.
|
InputStream |
getInputStream()
Returns an input stream representing all the content that was returned from the server.
|
URL |
getUrl()
Returns the URL of this page.
|
WebResponse |
getWebResponse()
Returns the web response that was originally used to create this page.
|
void |
initialize()
Initialize this page.
|
boolean |
isHtmlPage()
Returns true if this page is a HtmlPage.
|
public UnexpectedPage(WebResponse webResponse, WebWindow enclosingWindow)
webResponse - the response from the server that contains the data required to create this pageenclosingWindow - the window that this page is being loaded intopublic void initialize()
initialize in interface Pagepublic InputStream getInputStream() throws IOException
IOException - in case of IO problemspublic WebResponse getWebResponse()
getWebResponse in interface Pagepublic WebWindow getEnclosingWindow()
getEnclosingWindow in interface Pagepublic URL getUrl()
public boolean isHtmlPage()
PageisHtmlPage in interface PageCopyright © 2002–2014 Gargoyle Software Inc.. All rights reserved.