|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.gargoylesoftware.htmlunit.UnexpectedPage
public class UnexpectedPage
A generic page that is returned whenever an unexpected content type is returned by the server.
Constructor Summary | |
---|---|
UnexpectedPage(WebResponse webResponse,
WebWindow enclosingWindow)
Creates an instance. |
Method Summary | |
---|---|
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. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
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 intoMethod Detail |
---|
public void initialize()
initialize
in interface Page
public void cleanUp()
cleanUp
in interface Page
public InputStream getInputStream() throws IOException
IOException
- if an IO error occurspublic WebResponse getWebResponse()
getWebResponse
in interface Page
public WebWindow getEnclosingWindow()
getEnclosingWindow
in interface Page
public URL getUrl()
getUrl
in interface Page
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |